1. Indicators, entries, & exits Strategy uses two Pivot Points Standard indicators (TradingView). The indicator has many options for pivot points/levels. Such as Fibonacci, Traditional, Classic, DM, etc. We can choose to either use one indicator with one pivot points/levels, or we can choose to use both indicators with two different options for pivot points/levels. there are two ways to enter: ________________________________________ A. Reversal Entry: Long when price reaches a support level, Short when price reaches a resistance level, & Exit only at TP or SL ________________________________________ B. Continuation Entry: If an ongoing trade hits SL: Enter a trade in the opposite direction, & Exit only at TP or SL ________________________________________ 2. Distance-Based TP & SL SL & TP are not in percentages; they should be configured to be in pivot level-to-pivot level distance. • Current pivot level = 0%, Next pivot/level= 100%, TP / SL at configurable percentage values: Examples: 50%, 160%, 200%, -50%, till infinity. In the above pic/example, assume we entered long because price has hit support. The TP at the next level from the entry point/level would be 100%, the level shown after it would be 200%, & so on. We set the TP at 150% as shown in pic. Same idea for SL. In the example above, we set the SL as -100% since it’s on the next level from the entry level. ________________________________________ 3. Extended Pivot Levels: If price exceeds the last pivot level, then new levels are generated using the distance between the last two pivot levels. These extended levels are plotted & are valid TP/SL targets. & if price exceeds the new generated extended pivot level, we should generate a new on & so on. ________________________________________ 4. Risk:Reward entry condition: Trades are only executed/entered if minimum R:R is met. Default: 2:1. Should be configurable in inputs of strategy settings. For example: Price has hit resistance; therefore, we enter reversal (short). Assume in the inputs of strategy we set both SL & TP to 100% (thus they would both be at the next level after entry point/level). As shown in the pic, TP is 0.289% & SL is 0.210%. If in the inputs of the strategy we set the R:R condition to 2:1, then this trade would not be entered. If we set the R:R to 1:1, then it would be entered because the trade meets the minimum risk to reward ratio requirements. ________________________________________ 5. Session Control & Reset Rule: Ability in inputs of strategy for user to define allowed trading hours (e.g., 01:00–07:00, or 13:00–19:00, etc), & to define active trading days (e.g., Monday–Friday) (put in inputs of strategy). • Strategy must exit all open trades at session end for both days & hrs, & no new trades trigger until next session begins (Strategy resumes working normally only when next session opens (I can provide example code for this point, not sure if it works correctly though). • At start of each trading day: if we defined in session control that hrs & days allowed for trading are 02:00-23:59 Monday-Friday, then the “new day” would count at the beginning of the hrs allowed (in this case 02:00). On new day: Strategy does not carry over yesterday’s winner and it ONLY enters the first trade as reversal, not continuation. ________________________________________ 6. Strategy Modes: Strategy has two modes & can operate using: Mode#1 – Fixed Mode In this mode, we choose to either use one indicator, or two indicators with two different levels/points. And then strategy continues normally and enters and exits using whatever we chose with no changes or switching. ________________________________________ Mode#2 – Dynamic Switching: Mode#2A: In Mode 2, we DON’T choose to either use one indicator or two (& which levels/points to use). The strategy would choose by itself. Basically, in the background…strategy evaluates all indicator(s) options and dynamically selects which one to trade. It would evaluate if we used one indicator, and would evaluate all possibilities of levels in it (i.e. if we used classic, or DM, or Fibonacci, etc). And it would evaluate if we used two indicators, and all different possible combinations (i.e. DM & Classic, DM & Traditional, Fibonacci & Woodie, Classic & Traditional, etc). And then based on the evaluation, the strategy would choose which to use for the upcoming trade(s) What is meant by evaluation: in the background, strategy would have a virtual P&L for each option in order to check which is the most profitable for the last trade, in order to know which option to use for the upcoming trade. ________________________________________ Switching Rules: Strategy never switches mid-trade. Strategy always follows the biggest valid winner (with the biggest positive virtual P&L) in last trade. Clarification example of what is meant by “valid”: In above pic, assume we set the R:R condition to 2:1, we’re using Mode#2, & the strategy is evaluating Fibonacci levels/points in the background. the price has just hit resistance (Fib level), therefore we are supposed to enter reversal (short), but the R:R condition of 2:1 isn’t met, therefore the trade becomes “invalid”. Meaning, as the strategy evaluates and compares all trades of all options and combinations possible using one or two indicators (i.e. Classic, DM, Fibonacci, Traditional & Woodie combo, Classic & DM combo, etc), it would not compare Fibonacci because it is “invalid”. Basically, any “invalid” ones would not be compared with the rest, and only “valid” ones would be evaluated and picked from (for the upcoming trade). ________________________________________ If ALL possibilities/options have a negative P&L or are “invalid” on previous trade: Strategy waits & doesn’t enter any upcoming trades (until at least one becomes valid & has a positive P&L, in which case the strategy would use that one for the upcoming trade). ________________________________________ Mode#2B: strategy evaluates all indicator(s) options and dynamically selects which one to trade (exactly like Mode#2A), and then the strategy always follows the biggest valid winner with the biggest positive virtual P&L in last trade. Only difference in Mode#2B, is that once the strategy compares and picks what to follow (i.e Traditional & DM combo), it will ONLY switch after o 1 Reversal loss and then 1 Continuation loss in a row. After 1 reversal loss and 1 continuation loss using Traditional & DM combo in this example, strategy would then continue switching as explained above based on the biggest -valid- P&L trade for all different options for the last trade. Basically, it works same as Mode#2A, but once the strategy picks what to use, it would stick to it and would pause the switching logic until 1 consecutive reversal and continuation losses. ________________________________________ For both Mode#2A & Mode#2B: At start of each trading day (i.e. 02:00), strategy does not carry over yesterday’s winners and evaluations of virtual P&L’s…All virtual P&L’s would be reset to 0, and the strategy will wait for at least one -valid- positive P&L & only THEN would it enter the upcoming trade. ________________________________________ 7. Level Overlap Elimination • If we use Mode#2, then if two pivot levels (from the two different indicators) are within X ticks of each other, then one level should be completely ignored by strategy & deleted (as if it doesn’t exist at all, & would not count in entries or SL/TP calculations or anything). • In inputs of strategy, I should pick the: o Tick threshold (X ticks) o Which indicator’s level to ignore (indicator 1 or 2) • Only the specific overlapping level is ignored, not the ENTIRE indicator! ________________________________________ 8. Crucial Details • No repainting • Strategy should Only fire alerts for valid entry/exit signals. No alerts in between candles. • In case of changes or additions by another programmer in the future, comments must be placed in the code explaining everything & the entire logic used in detail. • Plot everything including at least two extended levels, & also for trades/entries…Plot/Label indicator combo used, & if it’s a Reversal or a Continuation entry. • everything must be in inputs (settings of strategy). Please name each input same as I did above, so it’s easier for me to understand & manage. i.e. which mode to use, R:R condition, ticks threshold (x ticks) & which level to ignore, and allowed trading hrs & days. ________________________________________