Forum

storing value problem...

Hi guys, a little help here? int handle1,handle2,handle3,handle4,handle5,write; // File descriptor string File_Name1= "fractalup.csv" ; // File name string File_Name3= "pastfractalup.csv" ; string read;

How to have one signal per bar with current price as signal

https://www.mql5.com/en/forum/141967 int start() { static datetime currTime; if (currTime==Time[ 0 ]) return ;currTime=Time[ 0 ]; //Get Signal //Trade } the above link show the example of time condition is used,but my ea used a signal based on current price, so it may continue to have signal, then

array and file problem

hi all, this is part of my code int handle1,handle2,write; string File_Name= "mydata.csv" ; double Erray[ 1 , 0 ]; Erray[ 0 , 0 ]=pastfractalup; Erray[ 1 , 0 ]=pastfractaldown; { if (handle1< 1 ) { handle1= FileOpen (File_Name, FILE_CSV | FILE_WRITE , ";" ); // File opening }

Help, storing a variable

hi all, i would like to know how to store a value. if (fractalup> 0 ) { pastfractalup=fractalup; } as shown in above i had assign a value to the variable with a condition, but now the question is, how do i keep the last variable when now the

trade limitation

hi all, i need a help in coding i want to disallowed trading for a few bar, lets say 10 bar after a trade is closed, how do i do that

bill william signal trading

hi all, my robot finally near completion but right now my robot doest seem to be trading accordingly, can anyone please look at my code and give me suggestion? it dont do sell signal , man, and there is tons of modify error, 130,131,138,1, this is annoying, can anyone help me solve this or give me

need guide in this trading operation

int ticket; if (allsignal== 1 && total<3 && enableopen==true) //condition allsignal is alligator signal,total=orderstotal()< { ticket= OrderSend ( Symbol (),OP_BUY,lotsize,Ask,slippage, 0 , 0 , "Order #2" , NULL ,Magic, Green );

i need only one trade per signal

hi all, i need some guide on writing a code, can anyone show me suggestion and how i do it? what i want is i have a few indicators, and then i only want a signal coming out from each bar for 3 different indicators so for one bar, maximum signal i get is 3 and then i trade once only with each

Help needed, explaining the coding

<SNIP> here is what i had written so far, when i tested on strategy tester , no trade was occur, i compiled the code with no error no warnings, can anyone tell me why ? also is there anyone to give me suggestion on perfecting it

one signal per bar

hi all, i need some guide on writing a code, can anyone show me suggestion and how i do it? what i want is i have a few indicators, and then i only want a signal coming out from each bar for 3 different indicators so for one bar, maximum signal i get is 3 and then i trade once only with each