DAX (GER30) and CAC40 index

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

DAX (GER30) and CAC40 index

Postby isamegrelo » Fri May 10, 2019 1:41 pm

Please create trading strategy with this description:

//@version=2
//study(title="True Strength Index Strategy")
strategy("Index Strategy", overlay=true)

fast=input(5)
slow=input(12)
v1=security('DAX',period,close)
v2=security('CAC40',period,close)
dax=(v1)/1
cac=(v2)/1
dax=tsi(dax,fast,slow)
cac=tsi(cac,fast,slow)

Take_Profit = input(200)
Stop_Loss = input(250)

longCondition = crossover(dax, cac)
if (longCondition)
strategy.entry("LongEntry", strategy.long)
strategy.exit("LongExit", "LongEntry", profit = Take_Profit, loss = Stop_Loss)

shortCondition = crossunder(dax, cac)
if (shortCondition)
strategy.entry("ShortEntry", strategy.short)
strategy.exit("ShortExit", "ShortEntry", profit = Take_Profit, loss = Stop_Loss)
Last edited by isamegrelo on Sat May 11, 2019 6:21 am, edited 1 time in total.
isamegrelo
FXCodeBase: Initiate
 
Posts: 114
Joined: Mon May 29, 2017 3:36 pm

Re: DAX (GER30) and CAC40 index

Postby Apprentice » Sat May 11, 2019 5:53 am

Your request is added to the development list under Id Number 4652
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36435
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia



Return to Indicator and Signal Requests

Who is online

Users browsing this forum: Bing [Bot] and 19 guests

cron