any way to do this:
-
hello is there a way to do this :
is there a way to make it so that EA does not take any trade for one day if the total profit is above a certain level ? let say 20$ for that day
for example we deposit 100 $ and start ea on that 100$ account
ea took some trades and all the trades are now closed and it will check if the total balance is above 100$(deposited amount) by 20$ or not and if it is then dont take anymore trades for that day.and on the next day the initial balance for second day is 120$ (100 DEPOSIT and 20 previous day profit)
and when the total balance for the second day is 140$ (i-e; 120 previous balance and 20$ second day profit) it stop taking anymore trades for that day
on the third day the initial balance will be 140$ and when the balance for day 3 gets to 160$ (previous day initial balance and current day's profit) it stop taking anymore trades for that day
and on the 4th day the initial balance will be 160$ and when there is profit of 20$ on 4th day that is (total balance of 180$ 160$ initial balance and 20$ profit of 4th day ) the EA stop taking trades and then starts again the next day
and so on.....i tried using the block " check profit (period of time)" but it didnt quite worked , may be i used it in a wrong way
also used variables to store the previous balance and current balance but i am not so good with the variables so it didnt worked -
I think you can do this by easily by putting a condition before entering new trades. The condition should check the existing equity. If equity is above certain number...only then take new trades. You can decide whatever you want the equity number to be and put this in variables incrementing it each day.
-
@yalgaar
thanks i tried it that way but how will be the variable be incremented each day automatically ?
i tried using modify variable block but i must have been doing something wrong -
and using simple Check profit (period of time) block?

-
@miro1360
will this block compare the equity with the balance or will it check the balance increments and decrements for specified time? -
@miro1360
and one more thing is it possible to store first day's balance in a variable "a" and then on the next day compare "a" with the second day's balance "b" and if b is greater than a+20 then dont take trade and if b<a+20 then keep taking trades -
@Jennifer said in any way to do this::
@yalgaar
thanks i tried it that way but how will be the variable be incremented each day automatically ?
i tried using modify variable block but i must have been doing something wrongYou can use the "Once a day" block to increment the variable each day