Request: Time frame based Stop Strategy

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

Request: Time frame based Stop Strategy

Postby haveforexfun » Thu Jan 02, 2014 8:47 am

Hallo development team,

wish you and all members of the community a happy new year and successfull trading. :D

Is there a possibility to develop a time frame based stop strategy?
Example:
When I have opened an SHORT Position, I want to place a stop to a specified level. Additional I want to specify a time frame.
The stop should be executed ONLY when the Closeprice (in case of a short position the buy price) of the time frame is equal or higher of the specified level. So I want to prevent to be stopped out when the price is higher in between but returns before the candle is closed.
For a LONG Position vice versa. Execute stop only when the Closeprice of the timeframe (sellprice in this case) is equal or lower the specified price level. If the price reaches the level within the time frame, the stop should not be executed.

Thank you very much, if this would be possible.
Haveforexfun
haveforexfun
 
Posts: 13
Joined: Tue Nov 12, 2013 3:54 am


Re: Request: Time frame based Stop Strategy

Postby Alexander.Gettinger » Fri Apr 26, 2019 7:28 pm

Please try this strategy:
Stop_Limit_Strategy.lua
(6.94 KiB) Downloaded 291 times
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk


Return to Indicator and Signal Requests

Who is online

Users browsing this forum: Majestic-12 [Bot] and 49 guests

cron