| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Script for Scaling in orders https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=1685 |
Page 3 of 3 |
| Author: | Aussiedoc [ Wed Jun 03, 2015 3:37 am ] |
| Post subject: | Script for Scaling in orders |
BobbyT, thanks for this. I'm having a struggle understanding. (Probably because today I feel like I am 800 years old.) so a question of clarification. When you say does that mean that it opens 5 trades, all with the same entry & SL and then closes them at 10p,20p,30p,40p,50p or something else?? Thanks! |
|
| Author: | BobbyT [ Wed Jun 03, 2015 4:04 am ] |
| Post subject: | Script for Scaling in orders |
No worries. The script has a function to use the same price as TP for all trades in the stack (SameSL_TP). Setting it to true, in the example I gave would close the first order at 50p, the second at 40p and so on until the last order closes at 10p. The original script didn't allow this and would throw an error as 5 trades x 10 pip step = 50 pips ( the same as the overall TP the example) and only makes sense when using FirstTradePending = flase. It's a dirty hack but one that was reauired when sending the first order as a market order. Hope I've made sense. Cheers, BobbyT |
|
| Author: | Aussiedoc [ Wed Jun 03, 2015 7:09 am ] |
| Post subject: | Script for Scaling in orders |
Love it!! Means that it's pretty much the same as I do right now with separate 10p,20p,30p,40p & 50p scripts. My problem so far has been that that I get a staggered entry and, because each trade doesn't have a Magic number or comment I am limited to using the platform's TS. I'll give it a go over the next few days and get back. Cheers |
|
| Author: | Foreverforex [ Thu Feb 11, 2016 3:51 pm ] |
| Post subject: | Script for Scaling in orders |
Thank you for this script. I'm finally getting a hand on scalping and this is really efficient. There is one part of the script logic that seems to be at odds with how I want to trade sometimes that I'm wondering if someone has the skills to address - I spent about 45 minutes staring at the code, hoping to be able to see a fix myself, but it's not within my brain power. I get the "Numb Trades x ScalePips too high" error when I try to invoke settings that would let me 'ladder' or 'leapfrog' trades and TPs, instead of entering series of trades with all TPs falling after the last trade placed. For instance if I want to set 10 trades 5 pips apart, each one with an 8 pip TP, I get the error message. I want it starting as pending order where I drop it. I have set same TPSL as false. Thanks in advance for the help if anyone can do it. If what I've explained isn't clear, I can try again. Best, FF Add: Another funny thing happens with current script - If I place Buy Stop with 3 trades, 4 pips apart, TP of 15 and TPSL NOT set to same, all three trades enter and set correctly. If I try same settings with a Sell Stop, only two trades are set, the third one doesn't get placed. Odd? |
|
| Author: | Foreverforex [ Fri Feb 12, 2016 2:13 am ] |
| Post subject: | Script for Scaling in orders |
adding another scaling script here (originally from an old Captain Jack thread). It allows the trades to ladder up/overlap the way I'm trying to achieve. The only hiccup in this one is that for SellStop orders it sets a single TP instead of a unique TP for each trade. Doesn't do this on the BuyStop side. If anyone has the generosity to look under the hood and see if this can be fixed, I'd be very appreciative. Thanks, FF |
|
| Author: | Foreverforex [ Fri Feb 12, 2016 2:31 am ] |
| Post subject: | Script for Scaling in orders |
Oh Wow!! After about an hour, I think I made the fix myself!! a missing piece of code, declaring the value of the SameTPSL input, for the Sell Stop function and two - signs that should have been + signs. Attached for anyone who might find it useful!! |
|
| Author: | hannele [ Fri Feb 12, 2016 8:45 am ] |
| Post subject: | Script for Scaling in orders |
Thank you my clever friend cheers hannele |
|
| Author: | Aussiedoc [ Fri Feb 12, 2016 11:08 am ] |
| Post subject: | Script for Scaling in orders |
Thanks very much! Cheers |
|
| All times are UTC | Page 3 of 3 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|