Hi All,
Please disregard, i'm fairly confident the issue is ATR being a price fraction rather than a price level, and ive been using price level to do my calculations
Hi All,
Please disregard, i'm fairly confident the issue is ATR being a price fraction rather than a price level, and ive been using price level to do my calculations
Hi All,
I've been working on the below implementing a trailing stop loss based on the previous candle and an ATR Multiplication.
Cell 7 stores the previous SL and saves it to SL_2 variable. Cell 9 reruns the stop loss calculation and saves to SL_1 variable. Cell 10 checks if SL_1 is a higher value than SL_2, and then updates stop loss to SL_1 in cell 11 if SL_1 is now higher than SL_2.
Link to report: link
It looks like it initially runs correctly, then updates to the incorrect figure shortly after. Image below is for my vps running against NSQ, 13940 SL is correct, 1.2 is not.

Could someone please direct me to what i'm doing wrong here? I've seen mention in previous threads that i should use pips instead of price level, but backtesting seemed to be returning a different returns, and the fact its initially returning the correct value makes me think it's something else.
Thanks
Thanks @XYON126 , you were completely right. Using the backtester in MT4 it must have been defaulting to the largest possible size my broker would allow, (probably around 1-2% or so). When i've updated to 0.01 or 0.05 i can see the changes in size.
Thank you very much!
Hi @XYON126 ,
Thank you very much for your reply! I understand your second point but am a little confused by the first. Will do this mathematically below but what i want this to do is :
If i have $1500 in my account, put 30% ($450) into a buy when my desired parametres are met. Are you saying this is too low an amount of money for a buy to be placed, or more so that I would be investing too large an amount of my equity and as a result the buy would be cancelled?
Examples below of my updating Lot Size in MT4 (Via Expert Properties Inputs), even putting to 3% does not fix the issue.
Set to 30% of equity

Set to 50% of equity

Set to 3% Equity

Hi All,
My EA is currently working in MT4 and trading as I want, currently buying as % of Equity (30% of $1500).
I've got the How Much set up as an input parametre, however when I change this (say to 50%) in MT4, the lot sizes don't change.
Updating the Initial Deposit in MT4 higher or lower does change the lot size, so I don't think the issue is size lot rounding.
Thanks