DCS 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

DCS Strategy

Postby spinemaligna » Fri Nov 02, 2018 3:36 pm

Hi all,

Hoping you could assist in the following strategy idea.

Indicators:
DMI/ADX Histogram
CCI Highlight
SAR

Logic:

BUY signal

As soon as DMI goes green (ie D+ crosses D-)
ADX is above trigger line
SAR is below price
In whichever order this occurs

OPen x positions

Stop Loss

x% of difference between SAR value and price or preset value

Take profit 1 at x% of stop loss or preset value. Close x positions. Move S/L to breakeven.

When SAR moves above B/E trail S/L with SAR.

Reverse for Sell signals.

Hope this makes sense.

Ross
spinemaligna
FXCodeBase: Initiate
 
Posts: 112
Joined: Sun Sep 12, 2010 2:42 am

Re: DCS Strategy

Postby Apprentice » Sat Nov 03, 2018 5:14 am

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

Re: DCS Strategy

Postby spinemaligna » Sat Nov 03, 2018 7:53 pm

Thank you
spinemaligna
FXCodeBase: Initiate
 
Posts: 112
Joined: Sun Sep 12, 2010 2:42 am


Re: DCS Strategy

Postby spinemaligna » Mon Nov 05, 2018 6:12 pm

Quick work but not sure this fits my criteria. For instance no reference to CCI. I am trying to post a screenshot showing what I am trying to achieve. Can't seem to paste a screen shot on here.
Put simply when three indicators all agree, at that moment open a trade. When a predetermined gain has been made, close a portion of the trade and bring stoploss to break even. Once the SAR rises above B/E then trail the SAR.
The extras for example trading times and position cap are useful.
If you could tell me how to post screenshot then I think it will all become clear.
Once again many thanks for your prompt service

Ross
spinemaligna
FXCodeBase: Initiate
 
Posts: 112
Joined: Sun Sep 12, 2010 2:42 am

Re: DCS Strategy

Postby spinemaligna » Wed Nov 07, 2018 5:05 am

Hi Apprentice,

DCS Sreenshot.png

Ross
spinemaligna
FXCodeBase: Initiate
 
Posts: 112
Joined: Sun Sep 12, 2010 2:42 am

Re: DCS Strategy

Postby Apprentice » Wed Nov 07, 2018 11:02 am

Something like this?
DCS Strategy.lua
(89.54 KiB) Downloaded 534 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36437
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: DCS Strategy

Postby spinemaligna » Mon Nov 12, 2018 10:46 am

A thousand apologies Apprentice.

You haven't coded the CCI part of the strategy because I omitted it in the original request.
So as per the screen shot when all indicators agree then a trade/signal is triggered.
I like the inclusion of the ATR strand in the money management section.
I am confused as to how to set up the move S/L to break even and wait for SAR/ATR to come into play.

Sorry for the delay in response, I was driving from Turkey back to UK. Almost home for the winter now.

Ross
spinemaligna
FXCodeBase: Initiate
 
Posts: 112
Joined: Sun Sep 12, 2010 2:42 am

Re: DCS Strategy

Postby Apprentice » Tue Nov 13, 2018 7:11 am

We don't understand what he is asking for.
Can you provide clear entry /exit rules?
Please use pseudo code.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36437
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: DCS Strategy

Postby spinemaligna » Wed Nov 14, 2018 6:06 am

Dear All

As per screenshot.
Entry long when :

D+ is greater than D-. ie DMI histogram is green
ADX is above trigger level (adjustable)
CCI is above trigger level (adjustable)
SAR is negative.

Entries to be either live or close.

Opposite for short entries.

Money management

If using SAR

Stop loss %age of SAR
Take profit 1 %age of stop loss
Close x% of position and move stop loss to break even.
When SAR breaks above break even trail stop loss until stopped out or manual exit.

If using ATR stop dots

Set stop at stop dot of previous candle
Set Take profit 1 at profit dot of previous candle and move stop to break even.
When stop dot breaks above break even trail stop with stop dot until stopped out or manual exit.

Hope this makes sense to you.

Ross
spinemaligna
FXCodeBase: Initiate
 
Posts: 112
Joined: Sun Sep 12, 2010 2:42 am

Next

Return to Indicator and Signal Requests

Who is online

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