Forum

Better Volume 1.5 Slow during Strategy Test

Hi all, Was wondering if anyone knows the reason why the Better Volume 1.5 indicator runs incredibly slowly during strategy backtests ? In the below code, it looks like a modification was made as version 1.4 of the indicator may have been a resource hog - but wondering if there is something in the

A solution/suggestion for the current Virtual Trailing Stop Code

Was wondering if someone could figure out a solution for the below virtual trailing stop. Just to caveat I am also very new to coding! The idea here is when a trade is opened, the Ask and Bid are used to stamp the highest high (TicketHighLow[i][3]) and lowest low made (TicketHighLow[i][2]) after

Variables keep resetting to initial declared values

wondering whether someone may be able to point out what I'm doing wrong here. Just for background I am very new to MQL4 (or coding at all) I wrote the following code to act as a virtual trailing stop loss. I am trying to lock in HH (Highest High) and LL (Lowest Low) based on the below loop. However