View Single Post
  #66 (permalink)  
Old 04-20-2008, 10:34 AM
cja's Avatar
cja cja is offline
Senior Member
 
Join Date: Apr 2006
Posts: 579
cja is on a distinguished road
#Multi Range Calcu;ator

I have updated the code in the TSR indicator so that the user can now select any timeframe required, there is a Magic number in the inputs so that must be changed to a different number for each indicator loaded to avoid code conflict.

Inputs

Multi_Range_MagicNumber = 12345;
TimeFrame = 1440;
Risk_to_Reward_ratio = 3.0;
First_av = 5;
Second_av = 10;
Third_av = 20;

Average Data used is ( The previous Timeframe + First_av + Second_av +Third_av / 4 )

Distance UP = Average - Bid - Low
Distance DN = Average - High - Bid

StopLoss Long = Distance UP / Risk to Reward ratio
StopLoss Short = Distance DN / Risk to Reward ratio

Long = Bid - StopLoss Long
Short = Bid + StopLoss Short


#Multi Range Calculator.ex4

Multi Range.gif

Last edited by cja; 04-22-2008 at 10:12 AM.
Reply With Quote