DrawHorzLine( 80,mfiPane, #red, #thin ); DrawHorzLine( 50,mfiPane, #yellow, #dotted ); DrawHorzLine( 20,mfiPane, #green, #thin );
{ The trading system below buys a position whenever MFI crosses below 25. It sells all open positions as soon as MFI crosses above 75. The ChartScript also colors MFI bars red and green to show oversold/overbought levels. } var MFIPANE, BAR, P: integer; MFIPane := CreatePane( 100, true, true ); PlotSeries( MFISeries( 14 ), MFIPane, #WHITE, #Thick ); DrawLabel( 'مؤشر تدفق السيولة ', MFIPane ); for Bar := 14 to BarCount - 1 do begin DrawHorzLine( 80,mfiPane, #red, #thin ); DrawHorzLine( 50,mfiPane, #yellow, #dotted ); DrawHorzLine( 20,mfiPane, #green, #thin ); if CrossUnderValue( Bar, MFISeries( 14 ), 25) then BuyAtMarket( Bar + 1, ''); if CrossOverValue( Bar, MFISeries( 14 ), 75) then for P := 0 to PositionCount - 1 do if PositionActive( P ) then SellAtMarket( Bar + 1, P, 'MFI' ); if MFI( Bar, 14 ) < 25 then SetSeriesBarColor( Bar, MFISeries( 14 ), #Green ); if MFI( Bar, 14 ) > 75 then SetSeriesBarColor( Bar, MFISeries( 14 ), #red ); end;
الكلمات الدلالية (Tags) |
لبرنامج, مؤشرات, تنصيب, خصائص, pro, wealthlab |
أدوات الموضوع | |
تعليمات المشاركة |
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك
BB code is متاحة
الابتسامات متاحة
كود [IMG] متاحة
كود HTML معطلة
|