finance.eod
Class DoubleTopBuySellTradingRule

java.lang.Object
  extended by finance.eod.DoubleTopBuySellTradingRule
All Implemented Interfaces:
BuySellTradingRuleInterface

public class DoubleTopBuySellTradingRule
extends java.lang.Object
implements BuySellTradingRuleInterface

Created by IntelliJ IDEA. User: lyon Date: Dec 9, 2008 Time: 8:20:02 PM DoubleTopBuySellTradingRule has the role of is to act as a container for a buy rule and a sell rule.


Constructor Summary
DoubleTopBuySellTradingRule(EODQuotes e)
           
 
Method Summary
 TradingRule getBuyRule(int i)
           
 TradingRule getSellRule(int i)
          Pass in the ith day for the trading rule
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleTopBuySellTradingRule

public DoubleTopBuySellTradingRule(EODQuotes e)
Method Detail

getSellRule

public TradingRule getSellRule(int i)
Description copied from interface: BuySellTradingRuleInterface
Pass in the ith day for the trading rule

Specified by:
getSellRule in interface BuySellTradingRuleInterface
Parameters:
i - day number
Returns:
return the trading rule for day i.

getBuyRule

public TradingRule getBuyRule(int i)
Specified by:
getBuyRule in interface BuySellTradingRuleInterface