Forum

SL, Minstop Level - automated matrix

Brothers & Sisters I have a new challenge which is really confusing my brain out... and I run out of energy. I also would like to share this code with you - as a reward and showing that MT4 is a truly capable platform. The issue: SL is not as per definition - at 5 pips. TPs are working fine

Market Watch - Symbol Hide - after History was Downloaded

Dear Friends I have a issue which I am trying to resolve for few months already. I am using this script found in attached. I have no code for it. It helped me quite a bit in my work !!! Nothing wrong with it (i guess). Still, if I would like to remove symbols from Market Watch with Hide - either

ivolume(s) & it's usage

Dear Friends, ivolume and ivolumes depends on the fx broker ? is it consistent to be used for impulse trading ? what other functions do you usually couple it with to obtain best results ? how do you recommend using this function in the best way - and on what time frame ? last but no least: can the

automatic order closing

Hello dear Friends, This piece of code is executing... or not... a bit random... not sure exactly why... if ((AccountProfit()/AccountEquity())* 100 >SlingShotPerC) { SlingShot = 1 ; while ( OrdersTotal ()!= 0 ) { for ( int Sx= OrdersTotal ()- 1 ;Sx>= 0 ;Sx--) {RefreshRates(); if (! OrderSelect

array declaration double - is mandatory to compile ?

This example works only like this: int ifori = 6 ; double ArrLots[ 6 ] ={ 0.3 , 0.21 , 0.17 , 0.12 , 0.1 , 0.1 }; double ArrTPs[ 6 ]={ 19 , 23 , 32 , 45 , 75 , 140 }; ================================================================== If i try it in this format - the compiler says: "{" -

multiple arrays as function input ?

dear friends, i need to break my code ... and for this i have to use another function than OnStart. could i use as input for the function these kind of arrays? double AUD1[10][4], AUD2[10][4], CAD1[10][4], CAD2[10][4], CHF1[10][4], CHF2[10][4], EUR1[10][4], EUR2[10][4], GBP1[10][4], GBP2[10][4]

time and date

dear friends, i need help with the time and date to set my script in motion... meaning - how can i differentiate between Monday and Tuesday ... and how can I translate the hours from the broker platform ? any piece of code in this respect is greatly appreciated ! have a wonderful day ahead & thank

strange issue - while and if issues

friends, i have wrote a bunch of code and now i trying to capture it in a while loop... - which it doesn't work. too much code (more than 2000 code lines) throws off the while loop ? it is OnStart(). the code has a bunch of lines in a for loop and if i put a if condition after that - with too many

buffers for using iMA or iRSI in MT4? other options/solutions ?

Dear Folks, I have tried to find a way to use the equivalent of the copybuffer from MT5 method in MT4. For what i found so far the situation is like this: - either you know how to use pieces of code from the actual indicator - you can use one buffer only (which from my experience is degrading as