Attachments forums

List of attachments posted on this forum.


All files on forums: 135902

Candle body size help

pedro, Mon Aug 26, 2019 1:26 am

Hi everyone from Italy, I'm new to these parts, sorry if my English is not perfect, I help google translator ...
I need help with a code that works, but what it needs to do is do it in real time, while I want the code to run only when the candle is closed.
The attached code measures the body (only the body) of each candle from open to close and if it exceeds a certain value that I can set as input it puts an arrow over hight or below the candle low.
EXAMPLE: close-open = 9: if I set my input> = 8 in this case it puts an arrow over the hight of the candle, if the value found was <8 it would do nothing.
On the contrary for negative candles.
It works, but it does all the real time so it puts arrows on the candles that at that time are> = to my input, but when the candle closes the body smaller than the one requested, so I ask if it is possible to make the code be performed only with the candle closed.

Thanks bye
All files in topic