Simple Trailing Stop calculation - EXCEL RELATED JOB

MQL4 Прочее

Работа завершена

Время выполнения 35 дней
Отзыв от заказчика
Completed the job and was easy to talk to regarding issues during the development stage. Will use again in future.

Техническое задание

Hello everybody, 

Just to clarify, this is a quick job in Excel I was hoping somebody here had the knowledge to help me with. I AM LOOKING FOR QUOTES IN TERMS OF HOW MUCH IT WOULD COST TO DO THIS AND HOW LONG IT WOULD TAKE.


I have a spreadsheet that I put together to do some simple backtesting. 

Basically it is in a similar format to that attached. Time periods going down the rows. Every time a trade is entered the Traded Price, Stop Loss and Take Profit are recorded.



The first column has the closing prices of every 1HR bar. 
The second column will have a value only if a trade has been entered (+ve if it is a buy, -ve if it is a sell).
The third column has the initial stop-loss simply calculated as the entry level +or- 1pt.
The fourth column has the take-profit value simply calculated as the entry level +or- 2pts.
As you can see a lot of trades in either direction can currently be opened at any one time.

I am trying to incorporate a trailing loss system whereby the stop is moved so that it is always at max 1pt worse than the current closing price.
So in the first example, where we bought at 81.981 with initial stop of 80.981. If the close in a few bars rises to 82.45 then I want to move the stop to 81.45.
Eventually we get to a point where the trailing stop would stop updating because of 1 of 2 things occurring. 
1) the take profit level gets hit. So in the above example the take profit was at 83.981. The last trailing stop would be around 1pt away from here then (depending on where the close was).
2) the price moves against and the trailing stop gets triggered.

I currently know how to calculate the number of rows away that the take-profit gets triggered since it is a static number I am searching for.
However I am having difficulty doing the same for the trailing stop since this number is supposed to be updated with the new closing prices (depending on if it is moving in our favor).
In the final column where I left "?" I am trying to determine where the trailing stop will end up getting triggered. Ideally, trying to figure out how many rows away from the trade entry it is.
Is there a way to use excel formulas in the cell to try and achieve this (by index() or match() or something like that) or will a macro have to be created for this purpose?

How much would you charge to help solve my conundrum and how long would it take?

 Thanks. 

Откликнулись

1
Разработчик 1
Оценка
(272)
Проекты
394
63%
Арбитраж
70
53% / 26%
Просрочено
198
50%
Свободен
Похожие заказы
A high-low intraday ticker that shows the last 40 stock symbol highs and lows. A stock will fill in at the top as it reaches an intraday high low and so forth. The chart will monitor the highs and lows of the 40 stocks that were entered, regardless of which one is displayed. 40 stocks are manually modifiable. With the time (hour:minute:second), symbol, and most recent price displayed, a high will appear as green. A
A high-low intraday ticker that shows the last 40 stock symbol highs and lows. A stock will fill in at the top as it reaches an intraday high low and so forth. The chart will monitor the highs and lows of the 40 stocks that were entered, regardless of which one is displayed. 40 stocks are manually modifiable. With the time (hour:minute:second), symbol, and most recent price displayed, a high will appear as green. A
Hello there!! I need a very and highly technical developer to help me with a project on the ninjatrader please kindly bid if you can do this and all the needed information will be shared via inbox
High Low intraday ticker to display the most recent high low of up to 40 stock symbols. As a stock makes an intraday high low it will populate at the top and so on. Regardless of chart that's display it will continue to track high lows of the 40 stocks inputed. The 40 stocks can by manually changed. A high will display as green with the time (hour:minute:second), symbol, and last price. A low will be displayed as red
hi a working strategy really working, max drawdown 3-7% / return almost over 50-120% monthly, no martingale no grid adaptive hedging pending orders anyone to sell, affiliate , buy, help marketing or any offer? thanks
I am looking for a developer to code a custom DERIV BOT and intergrate it with their analysis tool. For now I I just want it to trade even and odd. If you can do it send your offer
Modify an existing Python bot to trade bollinger bands, with iqoption api Currently the bot strategy is wrong, I am limited in my knowledge here and hope to fix this Hope to work with more experience people out there in relation to iqoption api and python
Hi I need access to Pocket option OTC charts where I can apply my tradingview indicator. I have the indicator but I need access to OTC charts to apply them! Please help
i just need a exactly conversion from mq5 to ctrader, it's not urgent so take your time, i will provide the mq5 file, i need also some days to test it if works as the original mq5 file
Hi, how are you I want a good expert that works on the MT4 platform The total must be profitable and stable StopLoss and TakeProfit should be running, not TrailingStop TakeProfit must be greater than StopLoss If you have an expert with the previous specifications Please send a test executable file and send your price as well Thank you

Информация о проекте

Бюджет
50- USD
Сроки выполнения
до 10 дн.