Please Help with some simple Calculations

Back to topics list To post a new topic, please log in or register
avatar
2
Marc1993 2016.07.12 12: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.

avatar
12992
WHRoeder 2016.07.12 16: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.
avatar
2
Marc1993 2016.07.12 16: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 ^^


avatar
108
eddie 2016.07.12 16:55 #
 

You are really in trouble.

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



Back to topics list  

To add comments, please log in or register