Help - Search - Members - Calendar
Full Version: If Greater Than And If Less Than
Visual Trading Systems User Forums > VTTRADER INDICATORS > INDICATORS PROGRAMMING QUESTIONS
tdelaney
Chris,

I have an easy one for you that is giving me fits. Here is a sample of what I am trying to do that is not working for me.

Trigger:=if(output < 0.005 and > -0.005, 0, Output);

I would like to see the Output if the value is greater than 0.005 and less than -0.005, otherwise, zero.
To say it another way, if the Output value is between -0.005 and 0.005 then it should display zero, otherwise display the Output value.

Thank you for your help.

Regards, Tim
cskidmore
Hi Tim,

Try this:

Output:= yourcodehere;
Trigger:= if(Output>-0.005 AND Output<0.005, 0, Output);

Regards,
Chris
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.