Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {*
- ========================================================================
- Strategy: @@TeamXX_StrMultipleTimeFrames
- ========================================================================
- *}
- {*
- ========================================================================
- === Input Parameters
- ========================================================================
- *}
- Input:
- INT n(3), // n - barinterval multiplier
- INT k_Length(8), // k - sequence length
- INT m_Bars(8), // m - max number of bars in position
- FLOAT ProfitPct(20.0); // Profit %
- {*
- ======================================================================================================
- === Start of Implementation
- ======================================================================================================
- *}
- // Constants ----------------------------------------------------------
- //----------------------------------------------------------------------
- Constants:
- INT DataArraySize(50);
- //----------------------------------------------------------------------
- // Data Processing
- //----------------------------------------------------------------------
- Array:
- Data2BarsHigh[DataArraySize](0),
- Data2BarsLow[DataArraySize](0);
- // Data2 Construction --------------------------------------------------
- //----------------------------------------------------------------------
- //----------------------------------------------------------------------
- //----------------------------------------------------------------------
- // END - Data Processing -----------------------------------------------
- //----------------------------------------------------------------------
- //----------------------------------------------------------------------
- // Events Identification
- //----------------------------------------------------------------------
- // Check k-High Sequence -----------------------------------------------
- //----------------------------------------------------------------------
- Vars:
- BOOL k_SequenceFound(FALSE);
- //k_SequenceFound = TRUE/FALSE;
- //----------------------------------------------------------------------
- //----------------------------------------------------------------------
- // End::Events Identification
- //----------------------------------------------------------------------
- //----------------------------------------------------------------------
- // Strategy
- //----------------------------------------------------------------------
- // Short Entry ---------------------------------------------------------
- //----------------------------------------------------------------------
- //----------------------------------------------------------------------
- // Short Exit ----------------------------------------------------------
- //----------------------------------------------------------------------
- if ( MarketPosition = -1) then begin
- end;
- //----------------------------------------------------------------------
- // StopLoss Exit
- //----------------------------------------------------------------------
- SetStopShare;
- //----------------------------------------------------------------------
- //----------------------------------------------------------------------
- // End:: Strategy
- //----------------------------------------------------------------------
- {*
- ======================================================================================================
- === End of Implementation
- ======================================================================================================
- *}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement