New Strategy Request

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

New Strategy Request

Postby cpc_cs » Sun Jan 13, 2019 1:54 pm

Dear All,

Great site and development work. I would like to request for a new strategy as per the details below. Please let me know if it is possible.

Thanks for your efforts.

S. Joseph

Strategy Details:

Instruments – Indices and Forex
Timeframe – 1 Minute to 1 Day

Indicators:
1) EMA Fast – Close; Number of Periods: User Selectable
2) EMA Medium – Close; Number of Periods: User Selectable
3) EMA Slow – Close; Number of Periods: User Selectable
4) SAR – Step and Max: User Selectable

Open Long:
1) Two Options:
a. EMA Medium > EMA Slow and EMA Fast change from EMA Fast < EMA Medium to EMA Fast > EMA Medium
OR
b. EMA Fast > EMA Slow and EMA Medium change from EMA Medium < EMA Slow to EMA Medium > EMA Slow
2) No open trades (Long or Short)
3) Spread <= User Selected Value for that Instrument

Open Short:
4) Two Options:
a. EMA Medium < EMA Slow and EMA Fast change from EMA Fast > EMA Medium to EMA Fast < EMA Medium
OR
b. EMA Fast < EMA Slow and EMA Medium change from EMA Medium > EMA Slow to EMA Medium < EMA Slow
5) No open trades (Long or Short)
6) Spread <= User Selected Value for that Instrument

Close Long:
1) SAR Down changes to SAR Up

Close Short:
1) SAR Up changes to SAR Down

If possible I would also request for weekday / time filters for trade opening (user selectable week days, start time and end time (separate for each week day)) - only applicable for trade opening - trades shall be closed as per above conditions.
cpc_cs
 
Posts: 20
Joined: Wed Dec 16, 2015 12:02 pm

Re: New Strategy Request

Postby cpc_cs » Mon Jan 14, 2019 5:35 am

Two clarification:

1) No open trades (points 2 and 5 above) means trades opened by this strategy for this instrument and for this time frame only - magic number for each strategy will solve this?
2) Facility to specify Stop and Limit

Thanks
cpc_cs
 
Posts: 20
Joined: Wed Dec 16, 2015 12:02 pm

Re: New Strategy Request

Postby Apprentice » Mon Jan 14, 2019 6:26 am

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

Re: New Strategy Request

Postby cpc_cs » Tue Jan 15, 2019 5:01 am

Dear Apprentice,

Some pictures for easier understanding:

Long - Option 1.jpg
Long - Option 1


Long - Option 2.jpg
Long - Option 2


Long - Option 2 with No Intermediate Trade.png
Long - Option 2 with No Intermediate Trade


Short - Option 1.jpg
Short - Option 1


Short - Option 2.jpg
Short - Option 2


Short - Option 1 - With No Intermediate Trade.jpg
Short - Option 1 With No Intermediate Trade
cpc_cs
 
Posts: 20
Joined: Wed Dec 16, 2015 12:02 pm


Re: New Strategy Request

Postby cpc_cs » Wed Jan 23, 2019 10:32 am

Dear Apprentice,

Few Observations:

1) Close Trade: Sometimes trades closes immediately after opening - see picture below:

Not Closing Correctly.jpg


As you can see Long Trade Opened and Closed on 25.01.2018 @ 20:00. Trade should have closed on 29.01.2018 @ 04:00. This I think is due to the way change in SAR is checked:

--1) SAR Down changes to SAR Up
return SAR.DATA[period] > source.close[period];

This statement just checks if SAR is above the Close value - it does not check the change from Down to Up - which should be the correct way.

Can you please arrange to correct it.

2) Open Trade: If I use "End of Turn" Option for "Entry Execution Type", then trades are being opened one candle later than expected (two candles after the entry conditions are satisfied) - see picture below - Red Lines are where trades are being opened - Green Lines are where trades should have opened:

Open - End of Turn.jpg


If I use "Live" Option for "Entry Execution Type", then sometimes entry conditions are getting satisfied when the candle is still not closed - but then candle closes below (for long trades) and above (for short trades) making the entry a wrong entry.

I think "End of Turn" is what I am looking for - but Trades are being Opened one candle later which most of the time costs pips. How to avoid this? Can you correct this?

Any help / suggestions will be very much appreciated. Others functions appears to work correctly - will continue to test.

I also posted this in the thread where the strategy was posted - by there was no response - hence I am posting it here also.

Thanks and Regards,

S. Joseph
cpc_cs
 
Posts: 20
Joined: Wed Dec 16, 2015 12:02 pm


Return to Indicator and Signal Requests

Who is online

Users browsing this forum: No registered users and 36 guests