forgive me if you see this post again–i had entered my question on another part of the platform before i saw this area to post in
example:
i have entered an active trade .4 contracts and my initial target was 1111 to close .4 contracts
but after i have entered my active trade i want to change my order to close .2 contracts at 1111 but in addition now i want to close remaining .2 contracts at 1112
is it possible to add an additional target after have entered an trade
You can close ALL contracts with either at-market or pending orders, in this case you dont’ even need to sopecify the number of contracts:
1
2
3
4
5
6
7
SELLATMARKET//close ALL long contracts AT MARKET
SELLATExitPriceSTOP//close ALL long contracts using a STOP pending order
SELLATExitPriceLIMIT//close ALL long contracts using a LIMIT pending order
//
EXITSHORTATMARKET//close ALL short contracts AT MARKET
EXITSHORTATExitPriceSTOP//close ALL short contracts using a STOP pending order
EXITSHORTATExitPriceLIMIT//close ALL short contracts using a LIMIT pending order
If, instead, you want to partially close a position (just a few contracts, not all of them), then you need to use AT-MARKET orders . To exit some contracts at a desired ExitPrice you will have to check it’s been reached (using = or > or >=):
1
2
3
IFclose>=ExitPriceTHEN
SELL2CONTRACTSATMARKET//close 2 long contracts
ENDIF
if the position is only 2 contracts, then all of them will be closed.
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue