Ichimoku Chikouspan Probelm

Dan221
30

I noticed something strange thinks When I try to get the value of the Chikouspan 26 bars before. It only works in live mode correct.

But not in the backtester. In Backtester i get strange Values.

I use this Code for geting the Value :


if(CopyBuffer(Ichimoku_handle_Long, CHIKOUSPAN_LINE, 26, 200, Ichimoku_Chikou_Long) <= 0)

return;

ArraySetAsSeries(Ichimoku_Chikou_Long, true);



Print("Ichumuko Chiku_0 = ",Ichimoku_Chikou_Long[0]);

Print("Ichumuko Chiku_1 = ",Ichimoku_Chikou_Long[1]);



Has enyone the same Problem ?

How can i get the correct Value for the Chikouspan Line 26 Bars bevor ?


Testing trading strategies on real ticks
Testing trading strategies on real ticks
  • www.mql5.com
The article provides the results of testing a simple trading strategy in three modes: "1 minute OHLC", "Every tick" and "Every tick based on real ticks" using actual historical data.
William Roeder
28234
William Roeder  
  1. ASAS before filling, as the example shows.

  2. Please edit your (original) post and use the CODE button (or Alt+S)! (For large amounts of code, attach it.)
              General rules and best pratices of the Forum. - General - MQL5 programming forum (2019)
              Messages Editor