ZigZag Strategy

Strategies are published here.

Moderator: admin

Re: ZigZag Strategy

Postby jenniferFX888 » Thu Sep 24, 2015 3:11 pm

Hi Apprentice,

Either i dont have the same version as you have but the one i m using is look exactly like the one LeTigre posted here. Pls see the link screenshot i attached. There is no option to choose the sound file folder. http://screencast.com/t/YNzqKe2lR

Thank you,

jenni
jenniferFX888
 
Posts: 21
Joined: Sat Nov 15, 2014 4:39 am

Re: ZigZag Strategy

Postby dandee » Sat Dec 26, 2015 6:58 am

Can this strategy be modified so the user can select whether to buy or sell instead of the strategy doing that and the user having the choice of selecting close on reverse and also user determine how many open position in each direction instead of the strategy closing out the position on reversing.Also I think there is a bug where if you run this on 2 different timeframes or 2 different instruments when the canclose() function is called it close all positions in both instuments
dandee
 
Posts: 34
Joined: Thu Nov 05, 2015 8:54 am

Re: ZigZag Strategy

Postby Apprentice » Mon Dec 28, 2015 5:57 am

Your request is added to the development list.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 23607
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: ZigZag Strategy

Postby LeTigre30 » Fri Mar 11, 2016 12:54 pm

Hello Apprentice,

I observed today a problem with this strategy. it enters only Sell Orders, never Buy orders.

Could you send me your feedback about this.
NB : I modified the name of the exit function by 'exitspecific' and enter by 'enterspecific'
due to Lua order 'exit'.

When the Sell orders are closed, it never open Buy orders ...

Does this strategy is compatible with indicore3 SDK ?

Bst Rgds

The code seems correct :

local signal = ''
if Use1 then signal = signal .. tostring(up1) end
if Use2 then signal = signal .. tostring(up2) end
if Use3 then signal = signal .. tostring(up3) end

if signal ~= prevSignal then
if (not Use1 or (Use1 and up1)) and
(not Use2 or (Use2 and up2)) and
(not Use3 or (Use3 and up3)) then
exitspecific('B')
enterspecific('S');

if ShowAlert then
ExtSignal(source, period, "SELL", SoundFile, Email, RecurrentSound);
end

elseif (not Use1 or (Use1 and not up1)) and
(not Use2 or (Use2 and not up2)) and
(not Use3 or (Use3 and not up3)) then
exitspecific('S')
enterspecific('B');

if ShowAlert then
ExtSignal(source, period, "BUY", SoundFile, Email, RecurrentSound);
end
end
User avatar
LeTigre30
FXCodeBase: Initiate
 
Posts: 174
Joined: Sun Dec 19, 2010 5:10 am
Location: Nimes (France)

Re: ZigZag Strategy

Postby LeTigre30 » Sun Apr 10, 2016 12:53 am

Hello Apprentice,

A member requests some monthes ago, if this ZZ strategy could be mixed with ema 34, does this strategy is done ?

BST Rgds
User avatar
LeTigre30
FXCodeBase: Initiate
 
Posts: 174
Joined: Sun Dec 19, 2010 5:10 am
Location: Nimes (France)

Re: ZigZag Strategy

Postby JOKER83 » Thu Aug 11, 2016 5:53 pm

NICE STRATEGY

CAN YOU MAKE A EXIT OPTION
FOR ALL INDICATORS

AND OPTION
BUY
SELL
BOTH
JOKER83
FXCodeBase: Initiate
 
Posts: 104
Joined: Fri Jul 11, 2014 7:44 am

Re: ZigZag Strategy

Postby Apprentice » Mon Aug 15, 2016 2:18 am

Can you define EXIT OPTION?
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 23607
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: ZigZag Strategy

Postby JOKER83 » Mon Aug 15, 2016 5:54 am

Apprentice wrote:Can you define EXIT OPTION?




1 Indicator Close trades yes/No

2 Indicator Close trades yes/No

3 Indicator Close trades yes/No

Other version

Highly adaptable zig zag strategy

1 Indicator buy , Sell , close , Alert

2 Indicator buy , Sell , close , Alert

3 Indicator buy , Sell , close , Alert
JOKER83
FXCodeBase: Initiate
 
Posts: 104
Joined: Fri Jul 11, 2014 7:44 am

Re: ZigZag Strategy

Postby Apprentice » Thu Aug 25, 2016 5:26 am

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

Re: ZigZag Strategy

Postby JOKER83 » Wed Oct 05, 2016 6:38 pm

can you make Highly adaptable zig zag strategy

PLEASE

:? :? :cry:
JOKER83
FXCodeBase: Initiate
 
Posts: 104
Joined: Fri Jul 11, 2014 7:44 am

PreviousNext

Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 7 guests