Tradestation User Group Germany (http://www.tradernet.org/wbb/index.php)
|- Newbies (http://www.tradernet.org/wbb/board.php?boardid=3)
|-- TradeSatation.. "Last Value " or Final Value (http://www.tradernet.org/wbb/threadid.php?boardid=3&threadid=2079)


Geschrieben von Derek Worswick am 02.06.2012, 12:23:

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

Powered by: Burning Board 1.1.1 © 2001 by WoltLab