- Please help to code this in my EA.
- [Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2.
- order open price + some pips
mystop = Low[pos+1] * (Low[pos+1] < mystop);
That line doesn't compute.
int Open_Position() { double mystop; for (int pos = 1; Low[pos] > Low[pos+1]; pos++) { if(Low[pos+1]<(Ask-Stop*Point)) mystop = Low[pos+1];//or what ever you want the new stop to be else mystop = Ask-Stop*Point; } OrderSend(Symbol(),OP_BUY,1,Ask,3,mystop,0,"EA Order",MagicNumber,0,Green); return (0); }I am a little confused on your logic but I think that this is what you are going for.
Hmm.. Ok, maybe it does...
Find out....
{
Print(" (Low[pos+1] < mystop) evaluates to ", (Low[pos+1] < mystop););
mystop = Low[pos+1] * (Low[pos+1] < mystop);
}
Hi,
Unfortunately I can't help you fix yours but I found a great little very reasonably priced and flexible and effective commercial utility that has a 2 stage Trailing Stop Loss (TSL) that you can use either on its own or in conjunction with other AEs (it overrides the TSL in other AEs). It is from PipBoxer.Com: look for PBTS. Like all TSL, you have to have a profit that is equal to or greater than the amount of your TSL before it kicks in. Being a commercial product it is only available in compiled format of course.
Good luck with it.
…………………(8 >) Prosperous Trading (< 8)
DougRH4x
.
PS: I’m looking for someone to splice an adjustable (Trailing &) Stop Loss into the Martingale based program: PipMaker. Overcoming this one downfall of this program will make it VERY profitable!
Hi,
Unfortunately I can't help you fix yours but I found a great little very reasonably priced and flexible and effective commercial utility that has a 2 stage Trailing Stop Loss (TSL) that you can use either on its own or in conjunction with other AEs (it overrides the TSL in other AEs). It is from PipBoxer.Com: look for PBTS. Like all TSL, you have to have a profit that is equal to or greater than the amount of your TSL before it kicks in. Being a commercial product it is only available in compiled format of course.
Good luck with it.
…………………(8 >) Prosperous Trading (< 8)
DougRH4x
.
PS: I’m looking for someone to splice an adjustable (Trailing &) Stop Loss into the Martingale based program: PipMaker. Overcoming this one downfall of this program will make it VERY profitable!
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use