System Messages

This forum is for members of the Apiary Investment Fund. To learn more about how to get involved, sign up now or fill out the form below and preview the training right now!

FREE Personalized Algorithm

 
Back to Forums
 
 
TheCoder

FREE Personalized Algorithm

I am looking for someone I can help, by challenging myself to write new algorithm for Alveo or MT5 and Santa is arriving early this year, I want to write 1 completely new algo for free this week.
Tell me your strategy using AUD, GBP or JPY, by using a clear description on how to choose a direction, then how to get in and get out. (Private Messages or Public Messages are both welcome)

If I choose to work with your strategy, I will give you free of charge: 
1. Backtest study of your strategy, showing for the last 2 years, drawdown, profits, losses, a chart with the equity curve of your strategy.
2. Automated algorithm to execute your strategy for you.

 

Ho Ho Ho ! Have a Merry christmas !

Mon, 12/02/2019 - 10:26pm
 
TheCoder

It can get more flexibility by creating rules to M5, M1, or even using Pending Stop or Pending Limit Orders to enter the market...

For example, when those 3 rules are true, instead of sending market buy order, it could send a Pending Limit Buy order, 0.3 ATR bellow current price... like this, the algo would seek for a better price to enter... Pending Limit could expire on the next bar... So, if it doesn't get filled in 1 bar, it just expires....

 
TheCoder

It can get more flexibility by creating rules to M5, M1, or even using Pending Stop or Pending Limit Orders to enter the market...

For example, when those 3 rules are true, instead of sending market buy order, it could send a Pending Limit Buy order, 0.3 ATR bellow current price... like this, the algo would seek for a better price to enter... Pending Limit could expire on the next bar... So, if it doesn't get filled in 1 bar, it just expires...

 
TheDreamingTrader

Please see attached shot of potential zones of continuation Pivot entries which are easier to see

Also note please that the 3rd bar does not have to be a down bar for a short entry (Usually is) just so long as it has closed below the high of the 3 bars (opposite for long entries)

IF you are trading live manually sometimes you might also consider a very aggressive entry even if the 8 is over the 17 But still pointing down.... sometimes these can be great but more often than not it is better to stand aside as it is still often a sign of upcoming consolidation or trend reversal
You can also on the close of that 30min bar drop down to say the 1 or 5min chart and scalp with smaller Pt's etc

ExamplesPivotEntries.gif
 
TheCoder

EA for Type A is ready in MQL5 Version, working on Type B now.
As far as Type B, when you say :

4b/ = tybe "B" Take a new trade each time there is a new trade setup in the opposite direction and then continue adding
any new trades in both directions until they are collectively 50 pips in profit (This needs to be adjustable)

Do you mean, to keep on taking new trades without TakeProfit and without StopLoss, accumulating them all together, shorts and longs hedging each other, like a type of grid, and then have a "Basket Take Profit" when the total profit is 50pips (50 being user defined) ?

Assuming that this is a good interpretation of this text, then should the EA keep its hedge balance and only have 1 short more than a long or 1 long more than a short, instead of accumulating hedge imbalance in any direction ?

I believe we will have to stipulate a max amount of accumulated open trades, since apiary and most brokers won't accept too many trades, even with hedge...

Should it have also a Basket Stop Loss at certain situations also ?

Or do you mean:

To keep on adding trades on the same direction by using the "Continuation Pivot Entries" ?
But in this case, this Indicator called "Apiary pivots" that seems to be the one on the screenshot, is totally unusable, because it paints 2 bars behind.... it's like some kind of zigzag indicator that looks really good on the screen AFTER the FACT... But EA cannot use it in its pure form, because when it shows up, its too late already.... Will need to define the indicators and logic to add to the position.... might be a good idea to go to a smaller timeframe for this...

 
Norma Jenner

Hi TheCoder

I like to trade trendline breaks on the 13 period CCI indicator (using correct typical price instead of alveo incorrect close price). As price gets closer to a change of direction, the trendline on CCI can, and needs to) get steeper by dropping the leftmost PP and moving to the next PP for start of trendline (TL).

Example is attached

Tx for great offer. Trading CCI tlb's is a stop/reverse opportunity. An alert would be awesome too. :) ;) ;)

AttachmentSize
EUR.USD CCI D1_H2 tlb's (1).docx 388.84 KB
 
TheCoder

Hello Norma ! I am happy to chat with you about this Strategy. I have been looking at your screenshot and at the Trend CCI indicator on your screen.

To code this trade, I would need to know what Indicator you are using for the "Trendlines on the CCI" or, if you are drawing this trendlines mannually for now, please check for a *.mq5 version of this Trendlines on CCI" Indicator and let me know. Good place to search for indicator is this link : https://www.mql5.com/en/code/mt5/indicators
Has to be a original MT5 indicator or OpenSounrce indicator...

 
TheDreamingTrader

Hi TheCoder .. please see notes to your questions below

EA for Type A is ready in MQL5 Version, working on Type B now.
As far as Type B, when you say :

4b/ = tybe "B" Take a new trade each time there is a new trade setup in the opposite direction and then continue adding
any new trades in both directions until they are collectively 50 pips in profit (This needs to be adjustable)

Do you mean, to keep on taking new trades without TakeProfit and without StopLoss, accumulating them all together, shorts and longs hedging each other, like a type of grid, and then have a "Basket Take Profit" when the total profit is 50pips (50 being user defined) ?
### YES

Assuming that this is a good interpretation of this text, then should the EA keep its hedge balance and only have 1 short more than a long or 1 long more than a short, instead of accumulating hedge imbalance in any direction ?
### YES as that extra one should create the required profit pips

I believe we will have to stipulate a max amount of accumulated open trades, since apiary and most brokers won't accept too many trades, even with hedge...
### Not sure why this will be necessary as the last entry will be in the direction that the Pips profit target is hit (Provided the lot size of the trades are not to large)#### (This needs to be adjustable)

Should it have also a Basket Stop Loss at certain situations also ?
### could be a good idea to have an emergency Basket Stop Loss at say 2 times the Profit target (This needs to be adjustable)

Or do you mean:

To keep on adding trades on the same direction by using the "Continuation Pivot Entries" ?
But in this case, this Indicator called "Apiary pivots" that seems to be the one on the screenshot, is totally unusable, because it paints 2 bars behind.... it's like some kind of zigzag indicator that looks really good on the screen AFTER the FACT... But EA cannot use it in its pure form, because when it shows up, its too late already.... Will need to define the indicators and logic to add to the position.... might be a good idea to go to a smaller timeframe for this...

### The extra Adon Continuation Pivot entries have nothing to do with the Apiary Pivots as they are just there as a quick visual reference (Please see attached chart shot showing potential entries without the Apiary Pivots on the chart)

The pivot entry ?? I look for is when the 3rd bar in a 3 bar sequence has a HIGHER LOW and CLOSES HIGHER than the
LOWEST LOW of the 3 bars and then enter on the open of the 4th bar

The obvious danger of to many Adon trades at once is when you a loaded up and the market makes a sudden large move against you but I guess this can be covered once again by an emergency Basket Stop Loss at say 2 times the Profit target (This needs to be adjustable)

The positive to this adon method is you will hit the 50pips Profit target much quicker ... And then start a new sequence at the next adon entry

ExamplesPivotEntriesNoAPiaryPivots.gif
 
Norma Jenner

Hello The Coder

I drew my TL's on CCI by hand. I wan't looking for the SAR trading programming, but only for a program for correctly drawing the trendlines on CCI and send an alert.

I did find a number indicator trendline programs for mq5, but none draws the trendlines as I want them, so they just fail for accurate trading. Tx for the reference!

It's OK.....I can draw them in, and pretty much see them w/out even drawing them. btw, just for fun, there is one now on GBPAUD Daily. The weekly tlb occurred Dec 16

 
TheCoder

Hello Norma, as far as writing a EA for a Strategy, Good EA must be fully autonomous, and therefore, cannot depend on human manually drawings on charts... as this cannot be back tested for consistency on profitability also.
Should you find a Indicator that is compatible with your strategy, please come back and i will be happy to help you out on your EA and it's backtesting.

 
Norma Jenner

Hi T.C.
Tx. The indicator is 13 CCI. The CCI_Trendlinebreak strategy works. If programmed, the trendline has to drop the left-most pivot point starting point and move to the next PP to the right, whenever it is possible for the trendline to be draw more steeply. I believe there is such an adjusting trendline name on prices, but I can't remember the name of it.

Anyway, the time for your generous present is past. I apologise for not having read carefully the wording and date of your first post. Had I read carefully, I wouldn't even have posted here. I'm sorry.
Now that this morning I have read the date/intent, I have to say WOW, most coders wouldn't even have had time to clean up the data in that short time before Christmas, then it would have taken months of adjustments. My goodness, there are so many amazing people here!

 
TheCoder

Hey Norma ! No worries ! I always help, when I have a chance, I love computer programming, it's like working out at the gym !

 
howar80403

@TheCoder...Just found your post. You're awesome. Will have to get my trading strategy together this weekend if your offer still stands?

 
TheCoder

Yeahhh ! I am still around here... Lets go !

 
TheDreamingTrader

Hi Guys...
F.Y.I the guys at RunwiseFx who's Multi Indicator Matrix I use all the time on Mt4 are having an off the wall sale ON ALL THEIR SUITE of products universal license that covers all their main products for one price till the end of January. At the moment you can get the whole lot for what it has cost me just for the Multi Indicator Matrix and some extra coding for some custom indicators for it
Highly recommend them ... all kinds of stuff that's well worth at least a look

http://www.runwisefx.com/january

RunwiseSimpleSinglePanelTemplate.2020-01-30.gif
 
csanto10

Hi TheCoder, coming late to the party but humbly asking your help to auto trade the following algo:

1) Identify HHs, HLs, LHs and LLs using 10 period (ideally having period as "input" so it can be changed to refine the algo)
2) Identify Trend:
=> most recent high = HH[1] pivot AND most recent low = HL[1] pivot ? Trend = UP
=> most recent high = LH[1] pivot AND most recent low = LL[1] pivot? Trend = DOWN
3) Plot_High = Horizontal Line for most recent high (Resistance), offset by 3 candles (i.e. Plot_High line to be shown 3 candles in the future)
4) Plot_Low = Horizontal Line for most recent low (Support), offset by 3 candles like above.

Buy/Long Conditions (Breakout)
1) Trend = UP
2) Last > Plot_High Horizontal Line
Stop Loss = 1 ATR (21 period)
Profit Target = HH[1] - HL[1] ---- if this doesn't work, then Profit Target = 2 * ATR (21 period)

Sell/Short Conditions (Breakout)
1) Trend = DOWN
2) Last < Plot_Low Horizontal Line
Stop Loss = 1 ATR (21 period)
Profit Target = LH[1] - LL[1] ---- if this doesn't work, then Profit Target = 2 * ATR (21 period)

Let me know if not clear.

Thank you so much for sharing your knowledge freely with the rest of us!
Best Regards,
csanto10

 
TheDreamingTrader

Hey ... Mr TheCoder are you still with us ... hope all is well

 
Rookie

Haven't heard from anyone about how Mr. Coder is doing or more importantly how the coding is doing if any?

Here is an interesting short Algo article.

How will rising Algo use impact market function?
https://www.forexlive.com/news/!/how-will-rising-algo-use-impact-market-function-20201103

algo-chart.png