Candle Breakout 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

Candle Breakout Strategy

Postby stalinkov » Tue Dec 19, 2017 7:39 pm

Timeframe: 15min, 30min, 60min, 240min, 1day, 1 week.
Instrument: Any currency

Entry:
Can select any candle to mark entries to trade (ID of candle).
Can create OCO order.
Can define how many pips away from high and low of the candle (1, 2, 3 or any number) the trade should be active.

Stop-Loss:
Can specify a number of pips
Can specify low or high of any specific candle
Can specify the highest or lowest price of specific number of candles

Take-Profit:
Scaling from stop-loss: Fixed (can specify number of pips) or Trailing
Can specify any number of pips
Can select double or triple number of pips of stop-loss
Attachments
Breakout strategy.pdf
(288.91 KiB) Downloaded 507 times
User avatar
stalinkov
 
Posts: 7
Joined: Fri Mar 25, 2016 7:31 am

Re: Candle Breakout Strategy

Postby Apprentice » Wed Dec 20, 2017 6:33 am

About the candle selection of the interface.
We can use date / time selector from within strategy,
or an external indicator helper, with which you will be able to select candle or candles via mouse selection.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Candle Breakout Strategy

Postby stalinkov » Wed Dec 20, 2017 9:07 am

Thank you for always replying and very quickly :)

I will give an example to explain it; If I want to mark the high/low of the second candle in the London session, so that when price cross the high/low then make a buy/sell order. I want to be able to select any candle.

For example:
Lets take the timeframe 1 hour, so the number of candles that I can select from are 24
Timeframe 15min, number of candles that i can select from are 96
Timeframe 30min, number of candles that i can select from are 48
Timeframe 60min, number of candles that i can select from are 24
Timeframe 240min, number of candles that i can select from are 6
Timeframe 1day, number of candles that i can select from are 5 (each weekday a candle)
Timeframe 1 week, no need for that :)

If this will make the strategy harder, then we can start by doing it only on 60min timeframe.
User avatar
stalinkov
 
Posts: 7
Joined: Fri Mar 25, 2016 7:31 am

Re: Candle Breakout Strategy

Postby Apprentice » Thu Dec 21, 2017 11:28 am

Selection method is not yet clear.
We can use one of the methods mentioned above.
Candle index is NOT the best method.
We have to record a specific candle date,
The only exception will be if candle indexes are always referenced to the current candle.
Can you clarify.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Candle Breakout Strategy

Postby stalinkov » Tue Dec 26, 2017 3:03 pm

Please consider the one hour time-frame only, since the main strategy is based on 1 hr, but I was hoping to apply it on multi time-frames.

Returning to the 1 hr time-frame, the strategy I am aiming for is the breakout of high and low of the candle before the London market opens, but I also need to test the strategy after 2 hours from London session opens, or any hour that I specify during the day, so I need the option to specify any hour during the 24 hours to take its high and low and make them entries if price breakout them.

Hope I explained it well :)
User avatar
stalinkov
 
Posts: 7
Joined: Fri Mar 25, 2016 7:31 am

Re: Candle Breakout Strategy

Postby Apprentice » Tue Jan 02, 2018 8:41 am

Your request is added to the development list under Id Number 3996
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Candle Breakout Strategy

Postby Apprentice » Wed Jan 03, 2018 5:16 am

Something like this?
Candle Breakout Strategy.lua
(45.59 KiB) Downloaded 596 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Candle Breakout Strategy

Postby stalinkov » Tue Jan 09, 2018 4:53 pm

Hi Apprentice, yes this is somehow what I am asking for, but tried to test it and didn't know all properties, can you please send me a manual about the fields inside?
Thank you in advance.
User avatar
stalinkov
 
Posts: 7
Joined: Fri Mar 25, 2016 7:31 am


Re: Candle Breakout Strategy

Postby mtrptr » Fri Apr 17, 2020 10:38 pm

Hi there
This is a very good strategy for my needs except that:
1) In short entries it works as expected and it opens a trade when the bid price takes out the L of the selected candle. But in long entries there is a problem: it opens the trade when the ask price takes out the H of the selected candle and this of course leads to entering before bid price goes above the H of the selected candle. So I am asking for the following: it should open a long trade only when the bid price takes out the H of the selected candle (and the opening price should be whatever the ask price was at the time that the bid price exceeded the H of the selected candle). I am not a programmer, but you may find this strategy of help http://www.fxcodebase.com/code/viewtopi ... 31&t=12455 which enters long when bid price goes above a specified level and the open price of the trade is the ask price that existed at the time of the breakout.
2) It would be extremely helpful if there was an option for the previous candle (ie apart from the “reference bar” option, let’s have an option for just “previous candle”) so someone who does scalping and enters mainly at the break of the previous candle H/L could just pause and resume the strategy and not have to open the strategy and set the reference bar each time which is time consuming and inevitably leads to missing opportunities when you are trading smaller TFs like m1 or even m5 if price moves fast.
mtrptr
 
Posts: 14
Joined: Sun Mar 04, 2018 3:29 pm

Next

Return to Indicator and Signal Requests

Who is online

Users browsing this forum: Bing [Bot] and 10 guests