Can you have a variable for Take Profit? #189
-
//observe cmd blow. Can I put a variable as the take profit? In particular I am looking to compare two positions to = "TAKE_PROFIT'. If one is negative and the other positive but combined say = 50 pips profit close both positions as a take profit. Hope that makes sense. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can code whatever you like. So, variables is possible. Two positions in the same instrument: you can ask for the position information instead of tradeinfo and close the position. Closing a position closes all trades related to that position |
Beta Was this translation helpful? Give feedback.
You can code whatever you like. So, variables is possible. Two positions in the same instrument: you can ask for the position information instead of tradeinfo and close the position. Closing a position closes all trades related to that position