[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re:EL question, Multiple time frames



PureBytes Links

Trading Reference Links

This is a simple system that buys Data1 when Data2 crosses a moving average.  I
believe that buy and sell signals default on data1.
Input: AvgLen(9);
 
 Value1 = (Average(Close Data2, AvgLen));
 Value2 = (Close Data2);
 
 Condition1 = Value2 crosses above Value1;
 Condition2 = Value2 crosses below Value1;

 If Condition1 then  Buy ("Buy") High + .0625 Stop;
      If Condition2 then Sell ("Sell") Low - .0625 Stop;




____________________Reply Separator____________________
Subject: EL question, Multiple time frames
Author: David Powell
Date:  9/15/98 1:02 PM

System:
Data1 = 3-minute
Data 2 = 15-minute
Data2 has an oscillator(see code below),
    if oscillator is rising, you only execute buys in Data1

    How do you get the program to execute in Data1 off an INDICATOR in
Data2?

Oscillator:
Input: price(Close),Length1(5),Length2(17);
Plot1(Average(price,Length1)-(Average(price,Length2))  ,"SimpAvg1");
Plot2(0,"Zero");

Please, any help would be greatly appreciated.

Thanks -David Powell
dwpowell@xxxxxxxxxxxxxxxx