| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Bob and Shelley Again https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=2759 |
Page 29 of 120 |
| Author: | spotdespot [ Thu Sep 19, 2013 10:36 am ] |
| Post subject: | Re: Bob and Shelley Again |
Just a quick note Steve - I think there is a minor issue with the lot sizing of stack trades if you use %risk rather than fixed lots. As the SL is divided by X (2 default) the lot size of the stack trades, when using % risk, is double the main trade lot size - which can't be a good idea. I will just stick to fixed lots for now but in an ideal world I would actually prefer to be able to make the stack trade lot sizes smaller than the original trade, but if not then perhaps just set as the same size? Cheers, Dave. |
|
| Author: | Radar [ Thu Sep 19, 2013 11:14 am ] |
| Post subject: | Re: Bob and Shelley Again |
Hey fxozgirl, There's three ways that I can think of to ensure that all trades are closed at once... 1 Use a hidden trailing stop (hidden from the broker, that is, not us mob)... A line is drawn on the chart, which trails price by TrailingStopPips... When price hits the line, the function CloseAllTrades is called... It's easy enough to code, (he says, after spending 3 weeks working it out) 2 When your last scale-in trade hits BreakEven, move all previous trades' stoploss to the last trade's BEP. 3 = 1 + 2 Hmmm... Looks like I've found a solution to my staggered stoplosses problem with my StackMan EA... Thanks for that! Have fun! Radar =8^) |
|
| Author: | SteveHopwood [ Thu Sep 19, 2013 2:12 pm ] |
| Post subject: | Re: Bob and Shelley Again |
V 1w in post 1. I have fixed the risk-based lot thingy, I think. CalculateLotSize() works out how many pips there are in the stop, and multiplies this by StackStopLossDivisor to arrive back were we started. I have added a basket stop loss based on a chart line. From the updated UG:
I forgot to write in the UG that a zero input in StackTrailingStopPips disables the stack basket trailing stop. To experiment with this by manually opening a demo basket, find these lines of code: Code: Select all |
|
| Author: | spotdespot [ Thu Sep 19, 2013 2:50 pm ] |
| Post subject: | Re: Bob and Shelley Again |
It's looking pretty good to me so far Steve - great stuff - thanks. Cheers, Dave. EDIT: Closed at the red line as expected. |
|
| Author: | kwanann [ Thu Sep 19, 2013 3:24 pm ] |
| Post subject: | Re: Bob and Shelley Again |
Didnt turn on stacking, been sitting on a gold mine so far currently floating about a 100 pips closed about 50pips |
|
| Author: | SteveHopwood [ Thu Sep 19, 2013 3:39 pm ] |
| Post subject: | Re: Bob and Shelley Again |
Although, when you do and the market takes off............................................ Ignore the bottom two - I was making sure the breakeven line thingy was fixed. |
|
| Author: | kwanann [ Thu Sep 19, 2013 3:47 pm ] |
| Post subject: | Re: Bob and Shelley Again |
Haha yeah i know, 200pips per trade, WOW Then again, in real life, nobody leaves em running for a few days to garner that amount of pips. FOMC just turned out great so i'm sitting on a gold mine, if it went the way everyone was expecting, this would have turned into a hell hole Anyway i kinda screwed up the competition account opening 20 lots on silver which seems to give $50 per pip, going to get em back and then see if i can catch up with those freaks that have probably quadrupled the amount by now |
|
| Author: | SteveHopwood [ Thu Sep 19, 2013 9:43 pm ] |
| Post subject: | Re: Bob and Shelley Again |
I just noticed something wrong in my UG description of the stack basket trailing stop thingy. Kudos to the first existing BSV's to spot it. Immediate promotion to BSV to any non-BSV who spots it. Attention to detail is vital when dealing with me. Only the first poster earns the recognition. I am typing this on my trading machine, not my development machine. Please remind me if I forget to update the UG. |
|
| Author: | spotdespot [ Thu Sep 19, 2013 9:54 pm ] |
| Post subject: | Re: Bob and Shelley Again |
Ha ha. If you mean that you said trades - 1 but then said 4 trades @ 20 pips = 80 not 60 then I win. If not I am still right in my own mind..... |
|
| Author: | SteveHopwood [ Thu Sep 19, 2013 10:16 pm ] |
| Post subject: | Re: Bob and Shelley Again |
Yep. You win. Sorry there is no further first prize other than kudos. Tell you what. In the ridiculously unlikely event that one of your posts irritates me and I respond inappropriately, then you are entitled to demand 1 apology. Keep a copy of this post as evidence. Alternatively, if you want the nuclear option then you are entitled to ban 1 irritating pillock. I will have to carry out the ban so again, keep a copy of this post as evidence. Use this with care as I will not question your judgement. |
|
| All times are UTC | Page 29 of 120 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|