28.10.2014 Views

ATMASphere Aug 2014

ATMASphere Aug 2014

ATMASphere Aug 2014

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Designing a trading system – Part 4<br />

So far in this series, we have covered till the creation of the system. Now let<br />

us get down to coding the system so that we can carry out backrests and<br />

position sizing suited for the system. For simplicity, I am providing the full<br />

codes for Metastock. The codes are commented so that it helps you to<br />

convert the system to Amibroker, Ninjatrader, MT4/5 or any other suitable<br />

software.<br />

The Trend Breakout System by Subhadip Nandy (codes for Metastock)<br />

(Ref(C,-1)Ref(C,-2))){{ previous close greater than the close of<br />

day before}<br />

AND (L< O- (( Ref(H,-1)-Ref(L,-1))*.55)) 1))*.55))){ low of today less than<br />

today’s open minus 55% of yesterday’s range}<br />

{} contains the comments, Metastock will ignore whatever is written<br />

within these parenthesis<br />

Now if you select the ‘Trend Breakout ver. 1.0’ and attach it to a<br />

chart, it will look like this:<br />

1. Open the expert advisor icon in Metastock and click “New”<br />

2. Name it “Trend Breakout System ver 1.0 “<br />

3. Click “Symbols”, then click “New”, Name is “Buys”<br />

4. Input this formula –<br />

(Ref(C,-1)>Ref(Mov(C,13,S),-1)){Previous close greater than 13SMA}<br />

AND ((Ref(C,-1) O+ (( Ref(H,-1)-Ref(L,-1))*.55))){today’s high is greater<br />

than today’s opening plus 55% of yesterday’s s range}<br />

5. Under Graphics, choose the UP ARROW symbol, color BLUE, click<br />

OK to save<br />

6. Now create the SELL signal with a red down arrow, code will be –<br />

AUGUST <strong>2014</strong><br />

We now know when to buy or sell and at what prices. We also<br />

know our stopples and exit points. Now we need to know how<br />

much to buy at each signal, i.e., what is the money management<br />

ATMASPHERE | 15

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!