TradeSatation.. "Last Value " or Final Value | |
Hallo,
Could you please help me with TradeSatation equvalate ( or work around ) of "Last Value " or Final Value
Hoping you can oblige,
Kind regards,
Derek.
----------------------------------------------------------------------------------------------------
// The Last value ( final value) of the bars since Day1(9), Month1(9), Year1(2011)
// equals 181 Bars from the start date
// i.e. Last Value ( final value) of Value2 TradeStation Formula below
// I only what to use the value of Last value ( final value ) 181 bars
// to use in an other formula to draw channels from the above date
// Tradestation Formula
--------------------8<-----------------------------------------------------------------------------------
Input: Day1(9), Month1(9), Year1(2011);
Vars: RefDate(0),Value1(0),Value2(0);
if RefDate = 0 then
RefDate = ELDate(Month1, Day1, Year1);
if Date = RefDate then
Value1 = BarNumber;
if BarNumber > Value1 then
Value2 =Currentbar-Value1;
Plot1(Value2)
-----------------8<-----------------------------------------------------------------------------------
|