Hello,
Highly appreciated very much if could help me to modified this EA without stop loss, I tried to modified without success, every time the new order in place, always have a stop loss, so please kindly change the stop loss to 0 or without any stop loss function
Files:
mgridbver7.0.mq4
11 kb
- How to code?
- Profit target and Stop loss Alert
- Order Modify Error 1 - Please help
hkstar98 wrote >>
Hello, Highly appreciated very much if could help me to modified this EA without stop loss, I tried to modified without success, every time the new order in place, always have a stop loss, so please kindly change the stop loss to 0 or without any stop loss function
Hello, Highly appreciated very much if could help me to modified this EA without stop loss, I tried to modified without success, every time the new order in place, always have a stop loss, so please kindly change the stop loss to 0 or without any stop loss function
Look in the help for the Ordersend() function.
hkstar98:
Hello, Highly appreciated very much if could help me to modified this EA without stop loss, I tried to modified without success, every time the new order in place, always have a stop loss, so please kindly change the stop loss to 0 or without any stop loss function
Hello, Highly appreciated very much if could help me to modified this EA without stop loss, I tried to modified without success, every time the new order in place, always have a stop loss, so please kindly change the stop loss to 0 or without any stop loss function
So where did this come from?
What used to be between the quote marks?
#property copyright "" #property link ""-BB-
Hi,
I got from forex factory
You change the four OrderSend lines, which are
OrderSend(Symbol(),OP_BUYSTOP,lots,InitialPrice+cpt*pips*Point,2,SellGoal,BuyGoal,DoubleToStr(InitialPrice,MarketInfo(Symbol(),MODE_DIGITS)),Magic,0,Blue); OrderSend(Symbol(),OP_SELLSTOP,lots,InitialPrice-cpt*pips*Point,2,BuyGoal+spread*Point,SellGoal+spread*Point,DoubleToStr(InitialPrice,MarketInfo(Symbol(),MODE_DIGITS)),Magic,0,Red); ticket = OrderSend(Symbol(),OP_BUYSTOP,templots,InitialPrice+cpt*pips*Point,2,SellGoal,BuyGoal,DoubleToStr(InitialPrice,MarketInfo(Symbol(),MODE_DIGITS)),Magic,0,Blue); ticket = OrderSend(Symbol(),OP_SELLSTOP,templots,InitialPrice-cpt*pips*Point,2,BuyGoal+spread*Point,SellGoal+spread*Point,DoubleToStr(InitialPrice,MarketInfo(Symbol(),MODE_DIGITS)),Magic,0,Red);
to this
OrderSend(Symbol(),OP_BUYSTOP,lots,InitialPrice+cpt*pips*Point,2,0,BuyGoal,DoubleToStr(InitialPrice,MarketInfo(Symbol(),MODE_DIGITS)),Magic,0,Blue); OrderSend(Symbol(),OP_SELLSTOP,lots,InitialPrice-cpt*pips*Point,2,0,SellGoal+spread*Point,DoubleToStr(InitialPrice,MarketInfo(Symbol(),MODE_DIGITS)),Magic,0,Red); ticket = OrderSend(Symbol(),OP_BUYSTOP,templots,InitialPrice+cpt*pips*Point,2,0,BuyGoal,DoubleToStr(InitialPrice,MarketInfo(Symbol(),MODE_DIGITS)),Magic,0,Blue); ticket = OrderSend(Symbol(),OP_SELLSTOP,templots,InitialPrice-cpt*pips*Point,2,0,SellGoal+spread*Point,DoubleToStr(InitialPrice,MarketInfo(Symbol(),MODE_DIGITS)),Magic,0,Red);
I just dont think its a good idea!
-BB-
I tried again, but error, very sorry, cause I'm not a programmer, would you please kindly modified so the stop loss not function.
I attached the mq4 file.
Thanks For Your Help.
Files:
mgridbver7.0_1.mq4
11 kb
Some random code
if ((EA.Without.StopLoss) && (Symbol()!="AUDNZD")) Account.Doomed.In.Days=7; if ((EA.Without.StopLoss) && (Symbol()=="AUDNZD") && (Using.More.Than.Min.Lots)) Account.Doomed.In.Days=30;
FWIW
-BB-
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