Download MetaTrader 5
To add comments, please log in or register
Store your source codes in MQL5 Storage. It is secure!
Marc1993
26
Marc1993 2016.07.12 10:19 

Hey, i tried to do some simple calculations.


My first problem is that my Put rules do not work. Call works well.


//Put Rules
if(FSG_MA < Last_FSG_MA)
{
go_put++;
drawLine_Red();
}

//Call Rules
if(Last_FSG_MA < FSG_MA)
{
go_call++;
drawLine_Green();
}

//Wirte Buffers
Last_FSG_MA=FSG_MA;



Furthermore, I would like to add to recent FSG MA a value of 0.002.

For the other usually subtract a value of 0.002.

//Calc
Factor_Call_Last_FSG_MA=0.002;
Factor_Put_Last_FSG_MA=0.002;
Calc_Put_Last_FSG_MA = Factor_Put_Last_FSG_MA + Last_FSG_MA;
Calc_Call_Last_FSG_MA = Factor_Call_Last_FSG_MA - Last_FSG_MA;


I do not get to work.
the values of the buffers to be increased or decreased to compensate for small variations.


Thanks in advance for your help. And excuse my bad english.

whroeder1
13641
whroeder1 2016.07.12 14:15  
  1. "Doesn't work" is meaningless - just like saying the car doesn't work. Doesn't start, won't go in gear, no electrical, missing the key, flat tires - meaningless. There are no mind readers here.
  2. You have not posted a problem, showed the problem, values of the problem, or code of the problem, no one can help you.
Marc1993
26
Marc1993 2016.07.12 14:24  
WHRoeder:
  1. "Doesn't work" is meaningless - just like saying the car doesn't work. Doesn't start, won't go in gear, no electrical, missing the key, flat tires - meaningless. There are no mind readers here.
  2. You have not posted a problem, showed the problem, values of the problem, or code of the problem, no one can help you.

If I could show you the problem. then I could solve it ^^

peter.MT4Web
158
peter.MT4Web 2016.07.12 14:55  

You are really in trouble.

If you can't describe it, you can't solve it.

/
To add comments, please log in or register