I kindly need help with the following:
I am developing a strategy in the "Strategy Builder" that goes long every time certain conditions are met and goes short every time certain (different from long) conditions are met.
Now, I want to create two different sets of ProfitTarget and StopLoss per entry depending on the size of the candle[0].
For example, if all the conditions are met, I want to submit an Enter limit/stop order for either long/short, and right after it gets filled, submit one of the two Target and Stop combinations:
- If a candle size of [0] is between 40-120 ticks: submit a 40 ticks Target and Stop
- If a candle size of [0] is between 0-39 ticks: submit a 20 ticks Target and Stop.
I am able to set the conditions and place a limit order to enter; however, once it gets filled, the ProfitTarget and StopLoss are STATIC and won't change depending on the size of the candle. The only Profit and Stop placed is 40-40 ticks
Things to consider:
- I want to be ONLY in 1 position at a time
- Once submitted the limit order to enter either long or short, I want to cancel the order if it hasn't been filled when the current bar closes (which for me is currently working correctly)
Thank you for your help!
I appreciate it

Comment