Period Extreme Strategy

Strategies are published here.

Moderator: admin

Re: Period Extreme Strategy

Postby morngrym » Sat Jun 30, 2012 11:46 am

i keep trying to use this in back tests but i get [string "c:\program files (x86)\candleworks\fxts2\st..."]:173: index is out of range.

i have tried re downloading serveral times i have tried many values and have only 3 that worked 0, 1 and 2 in the periods and also tried in different time frames as well, any suggestions?


i got it to pass into the progam but i would put "" around my number in the periods section but does not seem to be fuctioning like it should it puts shorts and longs in but the balance falls to 0 shortly into the test
morngrym
 
Posts: 4
Joined: Fri Jun 29, 2012 7:24 pm

Re: Period Extreme Strategy

Postby arindam89 » Thu Aug 30, 2012 12:13 am

Apprentice wrote:
Period Extreme Strategy.png


Buy
Signals and/or Trade are given when the value of the current candle exceeds the high of the past two candles
Sell
Signals and/or Trade are given when the value of the current candle drops below the low of the past two candles

Period Extreme Strategy.lua


HI GREAT CODE
I HAVE A QUESTION
WHAT TIME ARE YOU USING LOCAL TIME OR EST OR GMT OR FINANCIAL WHAT........?
CAN YOU USE LOCAL TIME PLEASE
THANKS
BY
arindam89
 
Posts: 53
Joined: Mon Dec 12, 2011 5:39 am

Re: Period Extreme Strategy

Postby Apprentice » Thu Aug 30, 2012 5:14 pm

The date and time is always in NY time zone.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36437
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Period Extreme Strategy

Postby Jeffreyvnlk » Wed Oct 24, 2012 12:36 pm

This is great. Any feedback ?
Jeffreyvnlk
FXCodeBase: Graduate
 
Posts: 302
Joined: Wed Apr 11, 2012 2:17 pm

Re: Period Extreme Strategy

Postby arstechnica » Sat Nov 10, 2012 4:23 am

I'm trying to test this strategy, but it always stop with error: "index is out of range"

Can someone advice how to fix it?

Regards

Salvatore
arstechnica
 
Posts: 48
Joined: Sat Sep 29, 2012 4:25 am

Re: Period Extreme Strategy

Postby Apprentice » Wed Jan 02, 2013 12:55 pm

I just removed reported bug.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36437
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Period Extreme Strategy

Postby arstechnica » Sun Jan 06, 2013 12:42 pm

Period 1 is last candle.

What does it mean period 0?

And complete candles? Are candles ar close?
arstechnica
 
Posts: 48
Joined: Sat Sep 29, 2012 4:25 am

Re: Period Extreme Strategy

Postby Apprentice » Mon Jan 07, 2013 7:04 am

No, if you use 0, u will have last candle

Last-1 - PERIOD+1 -1, period-1

0 or Break of Prev. Bar. High/Low
Last-1 - 0+1 -1, Last-1
Last-1, Last-1

1 or Break of Prev. Two Bars extreme.
Last-1 - 1+1 -1, Last-1
Last -2 , Last-1

If you are using complete candle filter.
Strategy is not calculated for last, activ candle, in order to avoid false signals.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36437
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Period Extreme Strategy

Postby arstechnica » Mon Jan 07, 2013 11:47 am

I have set Period 0 on Ger 30 last night on daily chart, but today it has not opened a short trade

Completed candle: no
Why?
arstechnica
 
Posts: 48
Joined: Sat Sep 29, 2012 4:25 am

Re: Period Extreme Strategy

Postby Apprentice » Fri Dec 09, 2016 5:09 am

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

PreviousNext

Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 63 guests