Examples.Trading
Class TradingGainsHistogram

java.lang.Object
  extended byExamples.Trading.TradingGainsHistogram

public class TradingGainsHistogram
extends java.lang.Object

Draws histogram of gains from trading for the trading strategies StrategyAverageDown trading a ConstantVolatilityAsset. 100 shares are bought initially and then 100 more shares are bought whenever the asset price declines 5 percent from the level of the last buy.

Console program, no user interaction. All parameters fixed in source code.


Constructor Summary
TradingGainsHistogram()
           
 
Method Summary
static void main(java.lang.String[] argv)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TradingGainsHistogram

public TradingGainsHistogram()
Method Detail

main

public static void main(java.lang.String[] argv)