Hello Experts
I recently decided to explore the best suitable time frame for my AFL after I realized that the internal logic of it was heavily influenced by Timeframe.
Instead of using preset timeframes, I experimented by using a loop to explore results for all timeframes
Chart's default time is set to 1 minute
I recently decided to explore the best suitable time frame for my AFL after I realized that the internal logic of it was heavily influenced by Timeframe.
Instead of using preset timeframes, I experimented by using a loop to explore results for all timeframes
Chart's default time is set to 1 minute
Code:
tf = 1;
while (tf < 1440)
{
TimeFrameSet(in1Minute*tf);
Buy = ....
Sell = ....
Short = ....
Cover = ....
TimeFrameRestore();
// 1440 is daily, after 375 minutes, we jump straight to daily
tf++;
if (tf > 375)
tf = 1440;
}