Forum

trying to fix max profit value but failed

i'm trying to fix max profit value with the following code but it kept changing according to new totalprofit or profitall, what's wrong with my code? if ( (profitMax >= 0) && profitMax < profitAll ) { profitMax = profitAll; } sorry can't find the src button in the menu here beee

how to code "first indicator's data" into your indicator

let me explain my question that i think is different from others', or not? 1 i wanted to make my indicator shows the parameter tab 2 in that parameter tab it shows "apply to" option with the drop-down menu offering various ENUM_MA_METHOD including the previous and first indicator's data similar to

wanted to run forward test of multiple eas

hi, all i couldn't find topic on running forward test of multiple eas on a single terminal. i know that you can run multi eas in a single terminal/account but is there any way to look at each ea's performance separately

problem with assigning value to variable

hi all, string status = "" ; double currentLow = LowMapBuffer[shift]; PrevLowMapBuffer[shift]=LowMapBuffer[shift]; double previousLow; // find the previous Low for ( int i=shift+ 1 ; i<shift+ 1000 ; i++) { if (LowMapBuffer[i] != 0 && ZigzagBuffer[i] != 0 ) {

updating min and max atr value

hi whroeder1 and all, a while back as per this thread https://www.mql5.com/en/forum/108481 u have suggested some code for finding min and max atr value but as price keep moving on, the min atr value does not update its value eg. if when first launched ea let's say min atr is at 0.25 but after

problem trying to assign value from one loop to a set of arrays

hi all, i'm mql4 newbeee, this is my first post, trying my best to ask the clearest question. i've got some problem trying to assign value from one loop to a set of arrays from zigzag indicator , at certain point it gives out various high and low bars along the way i'm trying to store some of those