public class SQStandardStrategy extends SQStrategy
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
Log
The Constant Log.
|
DataDefBYTE_MISSING, DOUBLE_MISSING, FLOAT_MISSING, INT_MISSING, LONG_MISSING| Constructor and Description |
|---|
SQStandardStrategy(java.lang.String name)
Instantiates a new SQ standard strategy.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getLongEntrySignal()
Gets the long entry signal.
|
boolean |
getShortEntrySignal()
Gets the short entry signal.
|
void |
onBarUpdate()
called when bar is updated (new tick or bar close arrives) .
|
void |
printTrades()
Prints the trades.
|
void |
processLongExits()
Process long exits.
|
void |
processShortExits()
Process short exits.
|
applySettings, BarsSinceEntry, Close, CloseD, deinit, EnterLongAtLimit, EnterLongAtLimit, EnterLongAtLimit, EnterLongAtMarket, EnterLongAtMarket, EnterLongAtStop, EnterLongAtStop, EnterLongAtStop, EnterShortAtLimit, EnterShortAtLimit, EnterShortAtLimit, EnterShortAtMarket, EnterShortAtMarket, EnterShortAtStop, EnterShortAtStop, EnterShortAtStop, EntryPrice, ExitLong, ExitLongLimit, ExitLongStop, ExitShort, ExitShortLimit, ExitShortStop, finishTest, getSettings, getStrategyName, getTradedSymbols, getTradesHistory, init, initDataDef, MarketPosition, Open, performOnBarUpdate, precomputeBlocks, print, setTradeHandler, setTradingEngine, SubdataClose, SubdataOpen, SubdataTime, SymbolInfo, TimeclearAll, clone, contains, get, get, getAll, getAllKeys, getBoolean, getBoolean, getByte, getByte, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getString, getString, hetKeyType, remove, set, set, setAllpublic SQStandardStrategy(java.lang.String name)
name - the namepublic boolean getLongEntrySignal()
public void processLongExits()
public boolean getShortEntrySignal()
public void processShortExits()
public void onBarUpdate()
SQStrategyonBarUpdate in class SQStrategypublic void printTrades()