Help with candles
-
hi im trying to take m15 signals and output it to m5 candles for visual backtesting. but i just cant seem to make it work. please help me see the problem >< Thank you.
......
Stocastic.xml -
nvm realised i did not change the timeframe for the price too >>
-
how do i set it to delete the current arrow drawn on the chart when the conditions are no longer met for the current bar.
-
also can i clarify the indicator moves within limits, the periods starting from candle is the starting candle id, ie 1 means 1 bar before, then the period of how many candles refer to how many candles to the LEFT of the starting candles
-
y wouldnt the blue line draw in the following file its under the indicator moves within limits part
......
Stocastic.xml -
Ummmm... are you aware that your blocks are located under "on Init", so the EA runs more like a Script - one time, when you add it?
Yes, the period starts from that candle to the left.
-
yes i am aware its on init due to weekend market are close and i wanna do a visual backtest of the signals generated.
i cant seem to make it work though. not sure why.
what i wanted to do is when the indicator moves within the limit for period of 3 candles it draws a line. ID0 is the "current" candle in the loop and ID 1 is the candle before
i ended up using strategy tester instead. although its not gd for multiple timeframe analysis due to cant timeframe switch -
The problem comes from the fact that I use some cache inside block "Indicator moves within limits". It always returns the result from the first iteration, because the EA stays on the same candle. I will see if I can make it work for your case, and still using cache (to work faster in normal situation).
-
I removed that cache now, otherwise I need to make the code even more complex, which is something I don't like. So I don't know, maybe I will turn it on again if someone decide that the block runs slowly.
Anyway, does it work now? I have blue lines here and there, but I have no idea what should I see
