
In Progress
Posted
Paid on delivery
Hi there, Thank-you for your interest in coding my Trading View strategy. It should be fairly simple once you understand the following: (1) How the lot sizes are calculated (2) How and when recovery trades are used I have the pine script for a trading view indicator I created that draws 'liquidity lines' at key areas. When a new liquidity line appears on the chart, the indicator triggers an alert. These alerts are when the trading view strategy should enter a trade. We will call this the Primary Trade, which is the start of a trading cycle. If this Primary Trade hits TP, then all is good and that trading cycle is complete and we will wait for our next entry alert from the indicator. If the Primary Trade hits SL, then Recovery Trade 1 will enter in the opposite direction, entry would be at the SL price of the Primary Trade. If Recovery Trade 1 also hits SL, then we will do the same for Recovery Trade 2 etc: In the below example, the Primary Trade was a short, and we set the number of recovery trades in the strategy settings to 4: If the Primary Trade is a short and hits SL, recovery trade 1 will trigger a buy immediately If recovery buy trade 1 hits SL, recovery trade 2 will trigger a sell immediately If recovery sell trade 2 hits SL, recovery trade 3 will trigger a buy immediately If recovery buy trade 3 hits SL, recovery trade 4 will trigger a sell immediately If recovery sell trade 4 hits SL ... then that is a losing day and we stop trading for the day as we hit our limit of 4 recovery trades. Attached are screenshots for the entry logic of the Primary Trade and 4 recovery trades. Generally speaking, if a trade hits stop loss, then a trade is immediately open in the opposite direction with the same number of points between TP and SL. Lot size is increased so that we can still make a profit, or at least cover our losses. Obviously, if the Primary Trade hits take profit then we wouldn't need any recovery trades. If recovery trade 1 hits take profit, then we wouldn't need any further recovery trades etc. Any time a take profit is hit, or we run out of recovery trades, a trade cycle is complete, and we wait for our next trade alert to take a new trade. Now we will look at how we calculate lot size: I only trade the MNQ1! which trades with micro lots. Here is how I calculate the number of micro lots to use for each potential trade: Primary Trade: y micro lots (would result in a profit) Recovery Trade 1: (y micro lots)*2 (would result in a profit) Recovery Trade 2: main trade lot size + recovery trade 1 lot size (would result in a break even) Recovery Trade 3: main trade lot size + recovery trade 1 lot size + recovery trade 2 lot size (would result in a break even) Recovery Trade 4: main trade lot size + recovery trade 1 lot size + recovery trade 2 lot size + recovery trade 3 lot size (would result in a break even) etc. A real life example when y is set to 2: Primary Trade: 2 micro lots Recovery Trade 1: 4 micro lots Recovery Trade 2: 6 micro lots Recovery Trade 3: 12 micro lots Recovery Trade 4: 24 micro lots I trade using prop firm accounts. They have strict daily loss limit restrictions. For example, there might be a max daily loss of $3,000 So in the strategy settings, I will need the ability to set the max daily loss limit. This max daily loss limit will be used to calculate the value of y. Please quote the phrase "Hectic Trades" in your application for this job so I know you have read this brief :) You will see a lot size calculator attached. This is what I use to calculate the lot size of each trade based on the number of points between the entry and stop loss of the main trade. If the max daily loss limit is $3,000 for a prop firm account I am using … then I would keep increasing the main trade lot size (y) in the lot calculator to get as close to the $3,000 max daily loss as possible. This is so that we can use the highest number of lots for the Primary Trade, without blowing our max daily loss limit on the recovery trades. This will make more sense when you open the lot size calculator. The trading view strategy will need to do these calculations, and place the trades with the correct lot sizes, and enter recovery trades at the right time. So in the strategy settings, I can enter what the max daily loss amount is … and I can select how many recovery trades I want, and I can set commission cost per lot. And the strategy will handle the rest just as I have explained. Chart Visuals: On the chart, we will see shaded TP and SL areas for each trade once they are entered. Just like how trading view's long / short tool looks. We will also show a table of some kind on the chart showing lot size calculations for the Primary Trade and Recovery Trades, plus other metrics you think will be useful. Automation: The strategy will need the ability to use webhooks so the strategy can be automated. We will also have these options in the strategy settings: Number of trade cycles per day - so I can limit it to only complete 2 trade cycles per day for example. Remember, a trade cycle completes either when we hit a TP or when we run out of recovery trades. Daily Profit Target - so I have the option to stop trading once we get to $500 for example. NOTE: One aspect that may be difficult to code in this strategy is if during a very volatile period, 2 recovery trades may be needed on one candle. The timeframe I use for this strategy is the 30 second time frame. I'm sure you will find a workable solution for this scenario. Maybe one possible solution could be if we place the trades on the 1 second time frame, but take the entry alerts from the 30 second time frame. Something to think about before applying for this job. Thanks James
Project ID: 40544373
30 proposals
Remote project
Active 4 days ago
Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs