Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information
You can try this EA to see the result. Please set SL = 100, TP = 300 , trailing stop = 70 and run it on EUR/USD H4.
Would you please kindly help me put martigale to trade this system:
Use an amount so that 100 pips = 2% of account balance
If the trade n-1 is lost, double amount of trade n until closing position with profit.
Thank you very much!
It worths to spend a little time, friends! This is the result of trading without martigale code. Initial deposit: 10000; 1 lot per trade. SL = 100; TP = 300; Trailing ST: 70; EUR/USD H4.
the difference between a and b <= c then trade = true, else false..
so far this is what i have made if anyone can show me a shorter way to code this..
if ( a >= b)
{
if (a - b <= c ) trade = true;
if (a - b > c) trade = false;
}
if ( a < b)
{
if (b - a <= c ) trade = true;
if (b - a > c) trade = false;
}
the difference between a and b <= c then trade = true, else false..
so far this is what i have made if anyone can show me a shorter way to code this..
if ( a >= b)
{
if (a - b <= c ) trade = true;
if (a - b > c) trade = false;
}
if ( a < b)
{
if (b - a <= c ) trade = true;
if (b - a > c) trade = false;
}
Thanks ...Perhaps ... you will have an idea about how to make the signals appear at the proper time...
Regards,
Tom
Hey Tom,
I was able to get back to this ZigZag indi and filter out intermediate alerts. I'm sending this immediately and have not tested it. Please let me know if you find any alert related problems with it.
Thanks
kevin07
Hello, I have an expert i use that needs to be able to resend a buy or a sell order if there is a problem opening the order up if the the server is disconnected, busy or what have you. This morning it should have opened an order but couldn't because the platform was disconnected. In the code right now it is set to wait 3 seconds then try again, which it did but it only tried 3 times then stopped trying to send the order thru. my ea doesn't scalp but is more a mid term trade so I only get 1-3 trades per week per pair. How can i have it coded so it will wait 10 seconds before it tries again and then it will keep trying to send the order until it gets through, i would like to have the option of adjusting it in the code how many seconds it waits to try again and then also how many times it will keep trying.
I've attached a snippet of code so someone could see what could be changed. Thanks in advance for your help!
Mike
RefreshRates();
int ticket=OrderSend(Symbol(),OP_BUY,ManagedLotSize(), Ask,Slippage,sl,tp,"Expert" + " - " + Period(),MagicNumber,0,Lime);
if(ticket<0)
{
Print("Error opening BUY order : ",GetLastError());
Sleep(3000); //---- wait for 3 seconds
}
else
{
break;
}
}
if(OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES ))
{
Print("BUY order opened : ",OrderOpenPrice());
}
else
{
Print("Error opening BUY order : ",GetLastError());
}
}
for (int i = 1; i <=5; i++) //---- Loop if requote
{
RefreshRates();
int ticket=OrderSend(Symbol(),OP_SELL,ManagedLotSize() ,Bid,Slippage,sl,tp,"Expert" + " - " + Period(),MagicNumber,0,Red);
if(ticket<0)
{
Print("Error opening SELL order : ",GetLastError());
Sleep(3000); //---- wait for 3 seconds
}
else
{
break;
}
}
if(OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES ))
{
Print("SELL order opened : ",OrderOpenPrice());
}
else
{
Print("Error opening SELL order : ",GetLastError());
}
I will test the new version of nonlagzigzag alert signal when the market opens Sunday. Thanks again for your work. You and others here who give their time and expertise pro bono are what makes many of us more successful traders. I will let you know my results with the new indi.