Strategy templates

Moderator: admin

Strategy templates

Postby Apprentice » Mon Nov 22, 2010 8:06 am

Simple Strategy Template.lua
(7.62 KiB) Downloaded 175 times


MCP Strategy Template.lua
Multi Instrument Strategy Template
(13.33 KiB) Downloaded 1265 times



End of Turn_Live Execution Strategy Template.lua
(17.68 KiB) Downloaded 2087 times

End of Turn_Live Execution Strategy Template Old.lua
(30.55 KiB) Downloaded 238 times


Entry Order Strategy.lua
(11.89 KiB) Downloaded 1390 times


Tick Based Strategys.
Tick Based Strategy.lua
(18.82 KiB) Downloaded 1410 times


Simple Strategy Templetes
Strategy Template.lua
(18.79 KiB) Downloaded 2187 times


Highly adaptable Strategy Templetes


Simple Signal Template
Simple Signal Template.lua
(3.34 KiB) Downloaded 1636 times


MTF Strategy
MTF Strategy Template.lua
(17.93 KiB) Downloaded 1817 times


Time Close Strategy.lua
This strategy closes all positions, Open and/or Entry , for the chosen currency pair, at entered time
(15.42 KiB) Downloaded 1196 times

Delete orders.lua
(2.9 KiB) Downloaded 1182 times


MTF MCP Signal
MTF MCP Signal Template.lua
(10.23 KiB) Downloaded 1097 times


create_orders_OM_test.lua
(14.59 KiB) Downloaded 1072 times


Close ALL Strategy.lua
(9.62 KiB) Downloaded 968 times

Strategy will automatically close ALL open positions and cancel all pending orders when the target P/L in PIPs is reached.
Two Instrument Strategy Template.lua
(28 KiB) Downloaded 871 times

Close All Positions Afterwards.lua
(18.98 KiB) Downloaded 844 times

Close Selected Positions Afterwards.lua
(18.67 KiB) Downloaded 831 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 21785
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Strategy Template

Postby maximekaribi » Sun Jan 15, 2012 1:59 pm

hello
how i can add my strategie into this template?
my strategie dont have ¨^allow strategie to trade¨^how i can bactest it?
thanks a lot
maxime
maximekaribi
 
Posts: 3
Joined: Mon Sep 19, 2011 2:43 am

Re: Strategy Template

Postby sunshine » Mon Jan 16, 2012 4:23 am

The template is intended for creating your own strategy. You should modify it for your needs. The template includes common code which can be used in all strategies. Please search for "AllowTrade" in the template to see how this parameter is implemented.
sunshine
 

Pause_trading_on_news

Postby Apprentice » Wed Oct 10, 2018 2:00 pm

Pause_trading_on_news.lua
(15 KiB) Downloaded 215 times

Pause_trading_on_news Strategy Template.lua
(28.96 KiB) Downloaded 235 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 21785
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Strategy templates

Postby Daveatt » Wed Mar 20, 2019 4:39 am

Hi Apprentice

Hope all is well

Do you confirm the Two Instrument Strategy Template.lua is working with index (GER30, US30, ..). Seems to work for forex but not for index
I'm very interested as I'm trying to add another source of index data into my own strategy so I'd like to replicate an already working solution

Thanks a lot
David
Daveatt
 
Posts: 58
Joined: Mon Jan 30, 2017 10:00 am

Re: Strategy templates

Postby Apprentice » Thu Mar 21, 2019 4:00 pm

It should work with any instrument.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 21785
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Indicator Development

Who is online

Users browsing this forum: No registered users and 4 guests

cron