Trade Bot

IndicatorContainer

Merges multiple signals into a single list and determines the unanimous and consensus signal.
  • IndicatorContainer([ signals[] ])
Returns a list with on index 1 the array with signals, on index 2 the unanimous and on index 3 the consensus signal.
Return Type: Dynamic
Parameter Name
Parameter Type
Required
Suggested
signals[]
EnumParams
False
Equals, DoSignal, PlotSignalEnum, ConvertSignal, IgnoreSignalIf, UseSignalIf, ReverseSignal, SignalWeight, SignalToBool, SignalMapper, SignalProperties, GetWeightedConsensusSignal, GetUnanimousSignal, GetConsensusSignal, TradeBotContainer, EasyABANDS, EasyADOSC, EasyAO, EasyAPO, EasyAROON, EasyAROONOSC, EasyBBANDS, EasyBOP, EasyCCI, EasyCMO, EasyCOPPOCK, EasyCRSI, EasyDMI, EasyDONCHIAN, EasyDPO, EasyDX, EasyICHIMOKU, EasyIMI, EasyKELTNER, EasyKRI, EasyLINEARREG, EasyMA, EasyMACD, EasyMFI, EasyMOM, EasyOBV, EasyPPO, EasyROC, EasyRSI, EasySSTOCH, EasySTOCH, EasySTOCHF, EasyTRIX, EasyTSI, EasyUDRSI, EasyWILLR, EasyZLMA, EasyAlice, EasyCDL, EasySlowRSI, EasyFastRSI, EasyBBANDSB, EasyBBANDSW, EasySTOCHRSI, EasyFIBONACCI, EasyKST, EasySAR, EasyDynamicLongShortLevels, EasyFixedLongShortLevels, EasyULTOSC

InsuranceContainer

Validates if all the signals agree.
  • InsuranceContainer([ signals[] ])
Returns true if all the signals in the collection are true.
Return Type: Boolean
Parameter Name
Parameter Type
Required
Suggested
signals[]
BooleanParams
False
AbsolutePriceChange, NeverExitWithLoss, OvercomeDoubleFeeCosts, OvercomeFeeCosts, PercentagePriceChange, StopLossCooldown, TradeOncePerBar, TradeOnlySideways, TradeOnlyTrending, WaitAfterTrade, NeverEnterWithALoss

SafetyContainer

Checks a collection for active safety signals.
  • SafetyContainer([ signals[] ])
Returns true if any of the signals is active.
Return Type: Boolean
Parameter Name
Parameter Type
Required
Suggested
signals[]
BooleanParams
False
DynamicStopLoss, DynamicTakeProfit, StopLoss, TakeProfit, TrailingArmStopLoss, TrailingStopLoss, ShrinkingTrailingStopLoss, StopLossROI, TakeProfitROI, GrowingTrailingStopLoss, DeactivateAfterEnterOrder, DeactivateAfterExitOrder, DeactivateAfterXOrders, DeactivateAfterXPositions, DeactivateAfterXIdleMinutes, DeactivateAfterXActiveMinutes, DeactivateOnLoss, DeactivateOnProfit

TradeBotContainer

Checks the safety, indicator & insurance signal. If a safety is active, DoExitPosition() will be executed. When there are no safeties active, the indicator signal will be executed if the insurances agree.
  • TradeBotContainer([ safetySignal ], [ indicatorSignal ], [ insuranceSignal ])
Return Type: Void
Parameter Name
Parameter Type
Required
Suggested
safetySignal
Boolean
False
DynamicStopLoss, DynamicTakeProfit, StopLoss, TakeProfit, TrailingArmStopLoss, TrailingStopLoss, ShrinkingTrailingStopLoss, StopLossROI, TakeProfitROI, GrowingTrailingStopLoss, DeactivateAfterEnterOrder, DeactivateAfterExitOrder, DeactivateAfterXOrders, DeactivateAfterXPositions, DeactivateAfterXIdleMinutes, DeactivateAfterXActiveMinutes, DeactivateOnLoss, DeactivateOnProfit, SafetyContainer
indicatorSignal
Enum
False
IndicatorContainer
insuranceSignal
Boolean
False
AbsolutePriceChange, NeverExitWithLoss, OvercomeDoubleFeeCosts, OvercomeFeeCosts, PercentagePriceChange, StopLossCooldown, TradeOncePerBar, TradeOnlySideways, TradeOnlyTrending, WaitAfterTrade, NeverEnterWithALoss, InsuranceContainer
Copy link
On this page
IndicatorContainer
InsuranceContainer
SafetyContainer
TradeBotContainer