simply monitor the price after you sendtyour order in your EA at each incoming tick with Close[0], or use the High[0]
something like :
if (OrderHasBeenSent==true && Close[0] > MyHighest) MyHighest = Close[0];
or
if (OrderHasBeenSent==true && High[0] > MyHighest) MyHighest = High[0];
something like :
if (OrderHasBeenSent==true && Close[0] > MyHighest) MyHighest = Close[0];
or
if (OrderHasBeenSent==true && High[0] > MyHighest) MyHighest = High[0];

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
int counted_bars=IndicatorCounted();
if (counted_bars>0) counted_bars--;
int limit=Bars-counted_bars;
for(int i=0; i<limit; i++){
double highest1 = High[iHighest(NULL,0,2,i,Point)] ;
}
From the syntax point of view it is ok, but it does not work in transaction system!!
Do you think this direction in coding is good??
Thanks in advance!!