Please Help with some simple Calculations

 

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.

 
  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.
 
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 ^^

 

You are really in trouble.

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