Candle ID
-
Could someone assist in this thought?
I want to be able to reference a specific candle later on after price does a certain thing.
For instance, if the 15M candle crosses yesterdays high, I want to set that candle as a variable so that I can recall it in any # of candles from now.
perhaps it would be better to draw a line at the base of that certain candle and then use the line for reference?
-
@jsauter86 Yes, you'd better use an object. 'Remembering' candle IDs is a headache because you need to recalculate it as new candles are created. An object will be there untill you erase it no matter what.
-
would that be a draw line block with no parameters chosen aside from maybe "horizontal, after the condition block...or just a draw line block, with the parameters of it being that candle I'm seeking?
-
@jsauter86 Well, it depends on what you need later in the EA. I would suggest to use arrows instead of lines for visual effect only. You can store the name of the arrow into a variable and then search for it later when necessary.