You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Yeah just reading over your comment again and what I have done is wrong,
will not give me the bar opening time would I have to use Time[0]?
Yes, or . . . .
That fixed it Raptor.
---------> http://clip2net.com/s/14aYs
That fixed it Raptor.
---------> http://clip2net.com/s/14aYs
Mate you have been a lot of help I finally have the ea in a state now where I can start tuning up the strategy. Thankyou very much but I doubt you have heard the last of me sorry to say haha
Also big thanks to WHRoeder tooSooo.. you thought it was over lol
I added some code that will trail the stoploss from a moving average value. The code works well on buy trades but it doesn't work on sell trades. I can't spot anything maybe you guys can.
Well the trailing stop code may not be the problem. There is a problem with the code that deletes pending orders after a certain time...
After each trade is opened I also run this...
I Comment ...
and it starts off from 1000 and just keeps counting on each new bar and does not get reset when I run ...
This makes the check to delete pending orders always true and if the trade is not triggered within the next bar the pending order is deleted straight away -__-
Ahhh HELP lol
I think I may have fixed it ....
I changed it so that one more check to delete the trade was to shift itime back the max allowed time a pending order could be opened and see if it matched up with the time the trade was opened :)
I think I may have fixed it ....
I changed it so that one more check to delete the trade was to shift itime back the max allowed time a pending order could be opened and see if it matched up with the time the trade was opened :)
You almost have something like what I was envisioning . . . .
There is a problem using your tradeopened variable . . . if there are open trades and the EA gets shut down you lose the info in that variable . . . why not replace it with OrderOpenTime( ) and do something like this . . .
Also raptor I need to pick your brain.... again :)
Is there a way to turn a moving average value into degrees? I am just googling now to see if I can find any maths forumlas. That way it would be easy for sideways market detection and clear up and down trends