2 مرفق (مرفقات) مرحبًا ،

أحاول ترميز مؤشر ستوكاستيك لـ M1 الذي يأخذ بيانات M15. بطريقة ما لا يعمل. كان يحاول معرفة. يمكن لأي مسؤول مساعدتي. شكرا!!

هنا هو M15 (IMG 1_4). كما ترى على الرسم البياني أن السهم يظهر هنا في M15. Stoch في OB و MACD أقل من 0.

هنا في M1 (IMG 2_4) ، Stoch في OB ، لكن ليس هناك أي سهم.

لذلك سأضع المؤشر في الرسم البياني M1.

يعمل المؤشر بهذه الطريقة ، عندما يكون M15 Stoch في OB و MACD أقل من 0 و M1 Stoch في OB ، سيظهر السهم على الرسم البياني (M1)

هنا رمز بلدي كله

Inserted Code #property indior_chart_window #property indior_buffers 2 #property indior_plots 2/--- Arrow #property indior_label1 ArrUp #property indior_label2 ArrDn/--- input parameters enum eprice {s0 = 0،/LOWHIGH s1 = 1/CLOSECLOSE} ؛/------------------------------------------------ ---------------------------------------- سلسلة الإدخال __________ 1 __________ = xxxxxxxxxxxxxxxxxxxxx؛ سلسلة الإدخال __________ 2 __________ == ALERT = ؛/ALERT ARROW والإشعارات ، سلسلة الإدخال __________ 3 __________ = xxxxxxxxxxxxxxxxxxxxx؛ input bool ARROW = true؛/SHOW ARROW input string __________ 4 __________ = xxxxxxxxxxxxxxxxxxxxx؛ سلسلة الإدخال __________ 5 __________ = = رمز السهم =:/ARROW تفاصيل سلسلة الإدخال __________ 6 __________ = xxxxxxxxxxxxxxxxxxxxx؛ input int ARROWUP = 217؛/ARROW CODE input int ARROWDN = 218؛/ARROWUPc = clrWhite؛/Arrow Up لون لون الإدخال ARROWDNc = clrWhite؛/Arrow Dn لون سلسلة الإدخال __________ 10 __________ = xxxxxxxxxxxxxxxxxxxxx؛ سلسلة الإدخال __________ 11 __________ == M15 OB OS = ؛/OB OS ، سلسلة الإدخال __________ 12 __________ = xxxxxxxxxxxxxxxxxxxxx؛ input double sto_dn_level = 20.0؛/LEVEL Down input double sto_up_level = 80.0؛/LEVEL Up input eprice sto_price = 1؛/PRICE FIELD/------------------ -------------------------------------------------- --------------------/--- محولات المؤشر المزدوجة ArrUpBuffer # 91 ؛ # 93 ؛؛ double ArrDnBuffer # 91؛ # 93 ؛؛/---/ ------------------------------------------ ------------------------ /| وظيفة التهيئة مؤشر مخصص/ ----------------------------------------------- ------------------- int onInit () {//--- علامات تحديد المؤشرات المؤقتة IndiorBuffers (2)؛ SetIndexBuffer (0، ArrUpBuffer)؛ SetIndexStyle (0، DRAW_ARROW، STYLE_SOLID، 1، ARROWUPc)؛ SetIndexArrow (0، ARROWUP)؛ SetIndexBuffer (1، ArrDnBuffer)؛ SetIndexStyle (1، DRAW_ARROW، STYLE_SOLID، 1، ARROWDNc)؛ SetIndexArrow (1، ARROWDN)؛/--- return (INIT_SUCCEEDED)؛ }/ ---------------------------------------------- -------------------- int OnCalculate (const int rates_total، const int prev_calculated، const datetime time # 91؛ # 93 ؛، const double open # 91؛ # 93 ؛ ، الثوابت مزدوجة عالية # 91 ؛ # 93 ؛، ثناج مزدوجة منخفضة # 91 ؛ # 93 ؛ ، ثيقة مزدوجة قريبة # 91 ؛ # 93 ؛ ، ثا طويلة tick_volume # 91 ؛ # 93 ؛ ، ثو طويلة حجم # 91 ؛ # 93 ؛، const int spread # 91؛ # 93؛) {//--- int i، limit؛ حد = rates_total-prev_calculated. إذا (prev_calculatedgt، 0) الحد = الحد 2. لـ (i = limit-2؛ igt؛ = 0؛ i--) {if (ARROW iMA (_Symbol، PERIOD_M15،50،0، MODE_EMA، PRICE_CLOSE، i) gt؛ iMA (_Symbol، PERIOD_M15،100،0، MODE_EMA PRICE_CLOSE، i) iMA (_Symbol، PERIOD_M15،100،0، MODE_EMA، PRICE_CLOSE، i) gt؛ iMA (_Symbol، PERIOD_M15،200،0، MODE_EMA، PRICE_CLOSE، i) iMACD (_Symbol، PERIOD_M15،12،26،1 ، PRICE_CLOSE ، MODE_MAIN ، i) gt؛ 0.0 iStochastic (_Symbol ، PERIOD_M15،3،1،3 ، MODE_EMA ، (int) sto_price ، MODE_MAIN ، i) lt؛ = sto_dn_leveliStochastic (_Symbol، PERIOD_M15،3،1،3، MODE_EMA، (int) sto_price، MODE_SIGNAL، i) lt؛ = sto_dn_level iStochastic (_Symbol، PERIOD_M1،3،1،3، MODE_EMA، (int) sto_price، MODE_MAIN، i) lt؛ = sto_dn_level iStochastic (_Symbol، PERIOD_M1،3،1،3، MODE_EMA، (int) sto_price، MODE_SIGNAL، i) lt؛ = sto_dn_level) {ArrUpBuffer # 91؛ i # 93؛ = iLow (_Symbol، PERIOD_M1، i) -10 * pix_y ()؛} إذا كان (ARROW iMA (_Symbol و PERIOD_M15،50،0 و MODE_EMA و PRICE_CLOSE و i) lt؛ iMA (_Symbol و PERIOD_M15،100،0 و MODE_EMA و PRICE_CLOSE و i) iMA (_Symbol و PERIOD_M15 ، 100،0، MODE_EMA، PRICE_CLOSE، i) lt؛ iMA (_Symbol، PERIOD_M15،200،0، MODE_EMA، PRICE_CLOSE، i) iMACD (_Symbol، PERIOD_M15،12،26،1، PRICE_CLOSE، MODE_MAIN، i) lt؛ 0.0 iStochastic (_Symbol، PERIOD_M15،3،1،3، MODE_EMA، (int) sto_price، MODE_MAIN، i) gt؛ = sto_up_level iStochastic (_Symbol، PERIOD_M15،3،1،3، MODE_EMA، (int) sto_price، MODE_SIGNAL، i) gt؛ = sto_up_level iStochastic (_Symbol، PERIOD_M1،3،1،3، MODE_EMA، (int) sto_price، MODE_MAIN، i) gt؛ = sto_u p_level iStochastic (_Symbol، PERIOD_M1،3،1،3، MODE_EMA، (int) sto_price، MODE_SIGNAL، i) gt؛ = sto_up_level) {ArrDnBuffer # 91؛ i # 93؛ = iHigh (_Symbol، PERIOD_M1، i) 10 * pix_y ()؛}} return (rates_total)؛ }/ ---------------------------------------------- -------------------- double pix_y () {return ((ChartGetDouble (0، CHART_PRICE_MAX، 0) -ChartGetDouble (0، CHART_PRICE_MIN، 0))ChartGetInteger ( 0، CHART_HEIGHT_IN_PIXELS، 0))؛ }/ ---------------------------------------------- -------------------- # 91؛ color = # 666666 # 93؛ # 91؛ font = trebuchet ms # 93؛ # 91؛font # 93؛ # 91؛اللون # 93؛