- are there any ways that I can check do I have any open position currently running, because I don't want to enter another trade if my next bar meets the conditions. For example, if there are any positions currently opened, I would like to set a bool variable. Once the profit target has been reached or stop loss, I would like to set the bool variable to false.
- are there any ways that I could control the stop loss. For example, the default SetStopLoss that I will be using when entering the trade is SetStopLoss(12), once my position is having 4 ticks profit, I would like to move the Stoploss to break even, then once my position is having an 8 tick profit, I would like to move the stop loss to 4 ticks profit, etc.
would it be possible if you may include some examples that have comments with the code explaining what are each line for, since I understand that these content are considered as advanced, Thanks
Comment