- [WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you.
- Placing Several Pending orders at once..
- Slippage on AMP Broker limit order?
Is this the correct forum to ask for some assistance in making a change to the EA?
This is NOT a do-it-for-you forum.
It's more a short response pointing you in the right direction. You then do all the research, learning, De-bugging and coding yourself. In the spirit of the forum.... I recommend the book.
honkin,
First do an OrderSelect()
double BoughtPrice = 0.00000;
for(int i=0;i<OrderTotal();i++)
{ if (orderSelect(i,SELECT_BY_POS,MODE_TRADES)==true) continue;
BoughtPrice=OrderOpenPrice();
if (OrderType()==OP_BUY)
{
if (BoughtPrice+0.00200 >= Open(0) ) // take $200 profit on open of current bar price
close the order etc...
}
}
Hope that helps.
Bill H.
Hai Traders Friends,
I am using this Ea, it is execellent work, I got lot of money in this ea. My suggesstion is in this ea there is a partial close option wants this ea.
Anybody programmer do and add the partial close programme in this ea.
Thanks,
Maskumareshraja.
No luck on Forex Factory then ;)
Attach the .mq4 file of the version you are using plus pair/timeframe/settings used
-BB-
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use