Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
If the current day equity is more than the repvious equity
Hi Guys,
I wonder if there is a possible way to modify an EA that if the current day equity is more than the previous day then stop trading for the rest of the day and start trading next day...
dont know the code myself but if you store current equity in a variable, then open orders, then check the equity when the order is closed against the provious recorded. same thing with date, but if it equals it.
this seems silly to me though since the market is 24/7, surely if your winning you want to stay in? if you could explain please, im curious about your reasons.
dont know the code myself but if you store current equity in a variable, then open orders, then check the equity when the order is closed against the provious recorded. same thing with date, but if it equals it.
this seems silly to me though since the market is 24/7, surely if your winning you want to stay in? if you could explain please, im curious about your reasons.
Well i want to stop trading for the day once my current equity is more then the previous equity...doesnt matter more by how much even if it is up by 10 pips.....its the 1st step towards a new way of increasing you balance i nthe account..
if (TimeDay(Time[0]) == TimeDay(OldTime) + 1 || TimeDay(OldTime) - TimeDay(Time[0]) > 2)
if (AccountEquity() > OldEquity)
return;
Hi. I think something along these lines is what you're looking for (haven't tried it though...). Variable 'OldTime' is of type Global, datetime. 'OldEquity' is type Global, double.
if (TimeDay(Time[0]) == TimeDay(OldTime) + 1 || TimeDay(OldTime) - TimeDay(Time[0]) > 2)
if (AccountEquity() > OldEquity)
return;
Hi. I think something along these lines is what you're looking for (haven't tried it though...). Variable 'OldTime' is of type Global, datetime. 'OldEquity' is type Global, double.
thanks for your script but will this stop all the trades for the rest of the day...?