Termos de Referência
For example, I have to EA:
Fund (money I have on account) = 100 usd
Instrument = audcad
Current level price = 0.93246
Point indicated (I define on chart level price ) = 0.9500
Stop out rule (rule of broker) = 50% of margin
Margin: 15.48
This way if I my Profit is under 50% of margin (15.48/2 = 7,74), Broker will close all positions necessary to profit stays major then 7,74 usd.
So, I want indicates a specific level price and EA indicates lot size based on the last post description. This way, EA indicates lot size in respect of all data given on last post. I incicate a point to trade. Then, If I indicate a point above It, It will be sell position; if inverse, It will be buy position.
Maybe, and It must be checked on broker, some specifics instruments, has different rule for stop out (instead of 50%, maybe 70% or 40% for example).
Specific level price is some level price I indicates (It could be by click on mouse, or some horizontal line) that are against my trade.
So, if i open buy at 0.93246, I indicates like 0.95000. It is the specific point.
Based on It and in all other data I posted, EA calculates lot size.
And, maybe, If I don´t have enough suficient fund for that specific point, ea indicates error (It means I dont have enough funds at account even I open minor lot, like 0.01; some instrument the minor lot is upper than 0.01).
Ea must indicates, also, the minimum lot required (0.01 or 0.10) and teh pass (if It increase 0.01 for 0.01 or, maybe, 0.10 for 0.10 or 0.50 for 0.50 for example).
Please, only experients coders.
Source free.