entry based on bar open strategy

Strategies are published here.

Moderator: admin

Re: entry based on bar open strategy

Postby Teaandcoffee » Thu Apr 30, 2015 2:56 am

Hi,

It is an old topic but I was really wondering if somebody has already coded the strategy as requested below by jgwill.

"when a signal is triggered for a said bar that it does not do generate more signal (alert) until next bar."

I am trying to code it but with my lua code knowledge no successful.

Apprentice, I will be really appreciated if you can find time and add this feature to the strategy.
Teaandcoffee
 
Posts: 2
Joined: Thu Apr 30, 2015 2:36 am

Re: entry based on bar open strategy

Postby Apprentice » Mon Dec 12, 2016 3:50 pm

Strategy was revised and updated.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 19465
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: entry based on bar open strategy

Postby Teaandcoffee » Tue Dec 13, 2016 6:14 pm

Thank you for the update.

Would you also add the features;

-Max Number Of Open Position In Any Direction
-Max Number Of Position In One Direction

It is opening lots of same orders at a time without these features.
Teaandcoffee
 
Posts: 2
Joined: Thu Apr 30, 2015 2:36 am

Re: entry based on bar open strategy

Postby Apprentice » Wed Apr 26, 2017 8:04 am

Your request is added to the development list, Under Id Number 3790
If someone is interested to do this task, please contact me.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 19465
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: entry based on bar open strategy

Postby Apprentice » Thu Apr 27, 2017 3:17 am

-Max Number Of Open Position In Any Direction
-Max Number Of Position In One Direction

Added.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 19465
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: entry based on bar open strategy

Postby aladin » Sat Jun 16, 2018 10:45 am

Hi,
Is possible add a "create order" to this strategy and not entry directly?
I will use it with reverse option in 4 / 8 hours chart.

Example:

A red Candle Close at price 100
if price go down 15 pips (now price is 85)
create a buy order exactly at 15 pips up (buy order at price 100 or the same price of red candle close)

The same for green candle !

Thank you !
aladin
 
Posts: 13
Joined: Sun Jul 23, 2017 9:04 pm
Location: Switzerland

Re: entry based on bar open strategy

Postby aladin » Sun Jun 17, 2018 9:27 am

Hi,
I read my last message and is not clear.
I add a picture for made easy what I mean.

When 4 Hours candle close create a 2 different "If-Then" orders, one 15 pips up and one 15 pips down the market price.
When price will touch one price (as picture at 115 or 85) automatically:
1) cancel the other "If-then" still waiting for price,
2) create an order (buy or sell) at the price of the candle close (as picture at 100)

As take profit if possible, can be manual or better close position at end of next 4 hours candle (close all positions when candle close)
As stop loss if possible, can be manual or better all the preview candle.

Example as picture:
Candle 4 hours close at price 100
Create 2 different "If-Then", one at 115 and one at 85
If price touch 115 delete the "If-Then" at 85 and create a sell order at 100
or
If price touch 85 delete the "If-Then" at 110 and create a buy order at 100

Now I think it's clear !
Please, let me know if is possible because TS don't have a OCO for the "If-Then" orders

Thanks in advance for any yours answer.

Best Regards
Attachments
Strategy on candle.jpg
aladin
 
Posts: 13
Joined: Sun Jul 23, 2017 9:04 pm
Location: Switzerland

Previous

Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 3 guests