Money Managment Trigger/Switch
-
Hello World

I'm at my wits' end. ( sry for my english)

i wrote an EA which works with "Freeze of % of Balance" it is nice but i want to make a trigger where i can handle it in Metatrader.
in Example: on Init : Condition (if boolean is true -> Fixed volume; Else if boolean is false -> Freeze % of Balancebut i dont know how i can do it.
anyway. i want take no less than 0.5 lotsize
hope you understand me
>.<mfg Pyro
-
I am using something that it is close to what you need. In my case, I am working in "OnTick" section but you can try it in the "OnInit" section.


-
In the Buy Now and Sell Now blocks there is a 'Volume upper limit' box which I've not seen used in examples.
I usually fill that with a constant: Max_Lot_Size and set it to .01 initially -- for testing. Put a larger number in there when you're ready to go live.
A simple override to money management. -
Hi and thx. It works fine.
I set my Switch direct to the beginning and it works. -
@richard96816 hehe now i understand your example. a very good idea. wonderful. this is much better.

Thanks you 2
