Pinescript strategy

MQL5 Outros

Termos de Referência

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.
________________________________________

Arquivos anexados:

TXT
spec.txt
8.5 Kb

Respondido

1
Desenvolvedor 1
Classificação
(16)
Projetos
35
23%
Arbitragem
4
0% / 50%
Expirado
2
6%
Trabalhando
2
Desenvolvedor 2
Classificação
(1)
Projetos
0
0%
Arbitragem
2
0% / 100%
Expirado
0
Livre
3
Desenvolvedor 3
Classificação
(18)
Projetos
22
9%
Arbitragem
5
40% / 40%
Expirado
1
5%
Carregado
4
Desenvolvedor 4
Classificação
(3)
Projetos
1
100%
Arbitragem
3
0% / 100%
Expirado
0
Livre
5
Desenvolvedor 5
Classificação
(124)
Projetos
132
36%
Arbitragem
3
33% / 33%
Expirado
2
2%
Trabalhando
6
Desenvolvedor 6
Classificação
(10)
Projetos
14
43%
Arbitragem
0
Expirado
3
21%
Livre
7
Desenvolvedor 7
Classificação
(8)
Projetos
8
0%
Arbitragem
0
Expirado
0
Livre
8
Desenvolvedor 8
Classificação
(33)
Projetos
37
19%
Arbitragem
13
8% / 69%
Expirado
1
3%
Ocupado
9
Desenvolvedor 9
Classificação
(1)
Projetos
1
0%
Arbitragem
0
Expirado
1
100%
Trabalhando
Pedidos semelhantes
Hello, I need a trade copier to be run on mt4 or mt5 to ctrader. To be run on a vps, so direct fast copying on the same computer terminal
Hello, How are you doing? i need a developer who can help me work on my FXDreema project. I did an extensive back testing and come up with an edge wich i would like to automate, it's a mechanical strategy that waits for a session sweep, wait for certain confluences and then a 5min FVG. Kindly bid if this is what you can do. Thanks
Hello, How are you doing? I need a developer that can work on my project. I have an existing reference project built with React and Node.js that is currently running well in a local environment. While it has not been deployed yet, the application is stable, functional, and designed with production use in mind. My immediate focus is to take this project live and ensure it meets production standards. This includes
EA Development mentor 30 - 40 USD
am looking for a Mentor that has verifiable experience trading forex and commodities. Somebody who has a couple years experience in failures and successes. I am not a beginner. I have modest success already with discretionary trading. I have had an EA created that is very promising. It has extensive testing with very good results. The idea would be to work together advancing the existing EA and build additional EA's
I am looking for an experienced developer to create an automated trading bot on the Quantower platform based on my trading rules. The bot should execute trades automatically. Kindly bid for it if it is what you can code for me
I am looking for a professional expert to set up a COMPLETE MT4 FULL SERVER ENTERPRISE (Must be a standalone Full Server, absolutely NOT a White Label). The final result must be 100% identical in functionality to the professional admin manipulation systems seen in private server videos. Mandatory Project Requirements: 1. Full Enterprise Admin Control: Deliver a fully functional MT4 Manager with absolute Full
Hi, I am looking for someone who has already developed a high-performance Gold EA that can outperform the one shown in my screenshot. If you have such an EA, please apply for this job. Please describe how the EA works (for example, whether it uses a grid system) and provide backtest results along with the set files. If the EA meets my expectations, you can make the necessary adjustments and I will use it as my own
I need a basic simulated trading environment for a prop firm. Requirements: • Simulated trading (no broker branding) • Real-time price feed • Manual admin dashboard • Ability to manually set: • Total drawdown • Daily drawdown • Profit target • Trader dashboard (read-only) • Simple UI (no automation required) Platform: • MT5 or web-based Budget: • $300–$500 This is a basic version, not enterprise software
I am looking for a freelancer in Marketing for online trading. I want to create an automatic algorithmic bot for Pocket Option. With simple interface so I can connect directly with my ID and password Only for Multiple OTC currencies at least 10 pair (EUR/USD OTC, GBP/JPY OTC, etc.) It only works when I am present, not 24/7 Algorithmic precision execution to analyze market trends swiftly and accurately Risk management
GoldTrade EA 30 - 60 USD
Hi, I am looking for someone who has already developed a high-performance Gold EA that can outperform the one shown in my screenshot. If you have such an EA, please apply for this job. Please describe how the EA works (for example, whether it uses a grid system) and provide backtest results along with the set files. If the EA meets my expectations, you can make the necessary adjustments and I will use it as my own

Informações sobre o projeto

Orçamento
30 - 50 USD
Prazo
de 1 para 3 dias

Cliente

(8)
Pedidos postados27
Número de arbitragens0