maximum Lotsize per Day/Week ?

 
Hello dear Community,

I would like to program an EA that gives me a maximum Lotsize per day.

If I am allowed to set 0.1 Lot per day, then 10 Trades x 0.01 Lot can be set. Or just 0.1 lot. So that i cant overtrade!

Should normally be a very small code and not difficult but I am unfortunately not a programmer.

Can you give me some tips how to start please ?


a wonderful weekend,
Daniel
 
Loop thru the open and closed orders.

In the loop check witch orders are opened today using open time, and then check their order lots and sum them up.

If the sum is above your variable. Don't do anything. Otherwise continue running the EA.
 
olzonpon:
Loop thru the open and closed orders.

In the loop check witch orders are opened today using open time, and then check their order lots and sum them up.

If the sum is above your variable. Don't do anything. Otherwise continue running the EA.

Thanks, can you help me here a lil bit ?


how to start ?

 
olzonpon:
Loop thru the open and closed orders.

In the loop check witch orders are opened today using open time, and then check their order lots and sum them up.

If the sum is above your variable. Don't do anything. Otherwise continue running the EA.
a little sample code ?