Hello, I am learning to code and came across these 2 functions that calculate the optimal lot size for the order. I tried both of them however, they are both giving me a bigger than supposed lot size sometimes (e.g. returns a 1.5 lot size for a $1000
(Rewriting this post to make it more clear) Hello, I am developing my first EA with the strategy of: for buy orders and sell orders are vice versa 1. EMA9 and price are both above EMA225; 2. a pullback happened and price went below EMA9, then price