Hi everyone!!!
As you may see, I am a newly, and just need a simple answer. How can you define the length of a candle???
I am trying to define the length in PIPS (FOREX) of the previous candle.
Example: (close[1]-open[1])>=8. I would like to proceed if the candle is equal or bigger than 8 pips.
I doesn’t seem to work, so I think that 8 does not define the length in pips. Would anyone please assist me on this??
Thanks in advance.
Juan Salas
Please try to take time to make a more understandable title next time you open a new topic, because “help!!!!!!!” as a title doesn’t help people to query much about your request..
You can retrieve the length of candlestick with the range keyword. To convert the 8 points value for the security you want to make the comparison on, you need to multiply it with pointsize (or pipsize), you code should be:
if range[1]>8*pipsize then
//DO SOMETHING
endif