Keep open

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

Keep open

Postby conjure » Mon Aug 07, 2017 1:41 pm

I have a strategy that i play by hand, and i would like to automate it.

The strategy checks at 7 am every day to find a pattern
that contains one low and two high CLOSED bars,
as shown in the picture.
Capture.JPG
Capture.JPG (9.48 KiB) Viewed 510 times


if the pattern founds it check for the current bar.
If it is low, it opens a SELL position.
if it is high, it opens a BUY position.

the close is complicated. It keeps the positions open until equity reach 5% of balance.
the trade amount is balance/1000

Is it possible to automate it?
Thank you
conjure
FXCodeBase: Initiate
 
Posts: 135
Joined: Sat Jul 22, 2017 7:27 am

Re: Keep open

Postby Apprentice » Tue Aug 08, 2017 2:45 am

1)
that contains one low and two high CLOSED bars,

I'm not sure I understand.
Try to use Something like up, down candle, or Something like
if close[0] > open[0]
and close[1] < open[1]
then
...
0 - Current candle
1 - previous candle

2)
Condition from 1) will be the same for subsequent long / short trades.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36437
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Indicator and Signal Requests

Who is online

Users browsing this forum: No registered users and 24 guests