Do you mean a script that would rewrite SL/TP for all existing trades in a given account? If so, you can try modifying the attached script to read the SL/TP line values and use them to set the trades' SL/TP.Could any one write a script to change the SL TP of opened, pending orders which price value taken from SL, TP lines?
From what I've seen when I last looked at TradingView's PineScript, it would impossible. The main reasons are the lack of account information functions and on-chart panel drawing tools.Hello there. To anyone that may be reading this. How difficult would it be to port this and to make this indicator work in tradingview charts? Does anyone know how i could code this up?
If I give some value in TP,SL it's working perfect. But sometimes when I try to changed TP,SL to 0 It's not working.. I could not find where it's checking TP or SL >0..There are two versions for MT5. The one in the zip archive is a rough conversion of MQL4 code, the one in a single .mq5 file is a rewrite for MQL5.
Which of the two scripts did you try? Is there any output in the Experts/Journal tabs when it isn't working?If I give some value in TP,SL it's working perfect. But sometimes when I try to changed TP,SL to 0 It's not working.. I could not find where it's checking TP or SL >0..
Did you install the PSC-Trader script into the Scripts folder? Did it compile? Do you run it when the Position Size Calculator is on the chart? What messages does it output in the Experts tab of your Terminal subwindow?Being a "newbie" probably doesnt help , but your PSC most certainly will! Thank you for your product Enivid. Some guidance would help please:
I have downloaded both the Script and PSC Indi (Ver 2.27), but I just can't seem to get the Script to activate trades.
Your help to get the script processing would be greatly appreciated. Thank you.
Please make a screenshot of the Experts tab after you try to launch PSC-Trader.Thank you for your prompt reply Enivid. I had difficulty compiling the script but I did go thro compile process picking up the mq4 file from the script folder as the Screen Shot attached (which shows relevant comments in Experts Tab and PSC open on the Chart). I hope this is of assistance?