If i do this every time i add onto my long or short am i changing the Stop Loss and Profit Target for all the open positions or does below code changes it for only this additional buy/sell order.
SET Stop %LOSS 2 %Trailing 1
SET Target %PROFIT 3
Eg Order A. if Im Long 4@50 SL@40
Then if i do this later on some other day
Order B. BUY 2 AT 60 LIMIT
SET STOP LOSS 10
In this case im thinking
Order A Long 4@50 SL@40
Order B Long 2@60 SL@50
Am i right or wrong please can someone shed some exp advice onto this.
It depends of the broker’s server mainly.
If you launch this code with IG, each order will have individual stoploss and takeprofit. While it will not in paper trading with Prorealtime trading where take profit and stoploss will be set for the whole orders basket at their average price plus or minus the SL and TP values you have set in your code.
Hope it’s clear 🙂
Warning: Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced clients who have sufficient financial means to bear such risk. The articles, codes and content on this website only contain general information. They are not personal or investment advice nor a solicitation to buy or sell any financial instrument. Each investor must make their own judgement about the appropriateness of trading a financial instrument to their own financial, fiscal and legal situation.