Indicates whether or not a position is open.
Syntax:
1 |
ONMARKET |
Example :
1 2 3 |
IF NOT ONMARKET THEN BUY 1 CONTRACTS AT MARKET ENDIF |
Indicates whether or not a position is open.
Syntax:
1 |
ONMARKET |
Example :
1 2 3 |
IF NOT ONMARKET THEN BUY 1 CONTRACTS AT MARKET ENDIF |
The indicator ONMARKET, is it for the strategy (PRT code) where it is used? Is it for the financial instrument (DAX30, CAC40, ..)? or for all PRT codes in my account?
Let me explain:
– stragey A trades DAX30 and is currently ON MARKET
– strategy B also trades DAX30. I have a condition (IF NOT ONMARKET AND OTHERS CONDITIONS THEN BUY 1 CONTRACT ENDIF). Can Stragerie B buy the contract with A ONMARKET?
– stragery C trades CAC40. I have a condition (IF NOT ONMARKET AND OTHERS CONDITIONS THEN BUY 1 CONTRACT ENDIF). Can strategy C buy the contract with A ONMARKET?
Thank you
Strategies are all independent and cannot interact with other systems. In this case, the ONMARKET instruction is only testing orders from the current strategy and not from other ones that are running their own codes.