Gamestudio Links
Zorro Links
Newest Posts
Trailing on Ticks
by danatrader. 07/13/20 06:21
Misreading Monitor Resolution
by Dooley. 07/11/20 23:42
Help with Martingale Script
by Qw3rty. 07/11/20 12:17
Help with code
by Qw3rty. 07/11/20 12:03
Tick Volume
by danatrader. 07/11/20 06:43
FAC Train mode
by danatrader. 07/10/20 18:13
A9
by 3run. 07/09/20 19:13
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
4 registered members (3run, AndrewAMD, Nymphodora, danatrader), 376 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
dasanc, DavidFdez, TraderKevin, deus777, carolthesecond
18476 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
TMF - Chandelier #480406
06/05/20 05:03
06/05/20 05:03
Joined: Mar 2019
Posts: 189
D
danatrader Online OP
Member
danatrader  Online OP
Member
D

Joined: Mar 2019
Posts: 189
https://www.zorro-trader.com/manual/en/trade.htm


the following gives an syntax error, cause "Multiplier" is a "Variables for futures and options"
https://www.zorro-trader.com/manual/en/contracts.htm


// TMF with parameters, for a Chandelier Stop
int Chandelier(var TimePeriod,var Multiplier)
{
if(TradeIsLong)
TradeStopLimit = max(TradeStopLimit,ChandelierLong(TimePeriod,Multiplier));
else
TradeStopLimit = min(TradeStopLimit,ChandelierShort(TimePeriod,Multiplier));
return 8; // only update once per bar
}

function run()
{
...
if(LongSignal) {
Stop = ChandelierLong(22,3);
enterLong(Chandelier,22,3);
}
...
}

Last edited by danatrader; 06/05/20 18:14.
Re: TMF - Chandelier [Re: danatrader] #480494
06/10/20 07:39
06/10/20 07:39
Joined: Jul 2000
Posts: 27,256
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,256
Frankfurt
Thanks, we'll change the name.


Moderated by  aztec, Inestical, Matt_Coles, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1