Forum

from EA plot ask/bid prices on current chart

In my EA I'd like to plot on current chart. For example I'd like to draw ask/bid price in `onTick()` function. How should I start to achieve it

How to calculate 1lot value

In my EA I need to know how much money will I spend if I buy 1lot of current symbol. -- Pawel

how to calculate position size based on money

Let's say I have 50$ to spend on single position. It is 1/100 of my account - this is my strategy (EA). How can I calculate size of position in lots based on FIAT? I'd like to use the same EA for different markets - I don't want to hardcode position size

automatic backtest with different parameters sets

I have my EA working. Let assume it has 2 parameters, both 1..3 => 9 combinations. I would like to backtest all combinations and see which one gives the best result. How to do this? Where should I start - maybe run somehow single pass and store results? I have a developer experience and I can use

draw rectangle each minute on M30 candles

Hi I have bars M30. I want to draw a rectangle on each minute of this bar. As start I want to draw bid prices using rectangle. My code: MqlRates prices[]; datetime lastTime = 0 ; double lastBid; int toCopy = 3 ; void OnTick () { if ( CopyRates ( Symbol (), Period (), 0 , toCopy, prices) ==