Calculating previous candle size
Created at 26 Apr 2023, 13:16
Calculating previous candle size
26 Apr 2023, 13:16
Hi,
I'd like to know what code is required to calculate the previous candle (preferably the body) in pip size.
Secondly, could you please give me an example of code to then place a stop/limit order the same size as the previous candle?
for example: code will calculate the pip size of the previous candle. it will then create a pending buy / sell order of the same number of pips as the size of the previous candle.
Thank you
firemyst
27 Apr 2023, 04:49
Sample code snippets to get the size of the previous candle:
Check out code samples to see how to place the order you want:
https://help.ctrader.com/ctrader-automate/cbot-code-samples/
@firemyst