[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] Syntax error



PureBytes Links

Trading Reference Links

I am doing something wrong, I keep getting that error. See pic attached.

 

From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of wavemechanic
Sent: Monday, March 03, 2008 3:05 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] Syntax error

 

I don't get an error.

----- Original Message -----

Sent: Monday, March 03, 2008 6:37 AM

Subject: RE: [amibroker] Syntax error

 

Keep getting a syntax error after “function FisherSto(array, period, factor) { “

 

I am using 5.0

 

 

 

_SECTION_BEGIN("Fisher Transform of Stochastics");

// Fisher transform of stochastics

//

//It is an improvement on the Stochastics. Identifying turning points better with less wipsaws.

//Good for swing trading.

//

function FisherSto(array, period, factor) {

 

  MaxH = HHV(array, period);

   MinL = LLV(array, period);

 

   Range = MaxH - MinL;

   sto  = (array - MinL)/(MaxH - MinL);

 

   Value1 = AMA(2*(sto - 0.5), factor);

   Value1 = IIf(Value1 > 0.999, 0.999, IIf(Value1 < -0.999, -0.999, Value1));

 

      Fish = AMA(log((1 + Value1)/(1 - Value1)), 0.5);

 

   return fish;

}

 

// Parameters

period = Param("Period", 14, 3, 35, 1);

factor = 0.10;

 

price  = AMA(Avg,0.5);

StoFR = FisherSto(price, period, factor); temp = Ref(StoFR,-1);

 

Plot(StoFR, "Stochastic", colorRed,styleThick); Plot(Ref(StoFR,-1), "previous", colorPink,styleDashed);

 

Buy=Cross(StoFR,temp);

Sell=Cross(temp,StoFR);

 

PlotShapes(IIf(Buy,shapeUpArrow,shapeNone) ,colorGreen,0,Graph0,-5); PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed,0,Graph1,5);

_SECTION_END();

 

 

From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of progster01
Sent: Monday, March 03, 2008 1:06 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: The OHLC and Split Scams

 

Brian,

I agree with everything you've said, with one possible exception - as
I see it, the presence or absence of HL precedence information is
appropriately designated a "quality" item, since basic "path of the
market" info is either present (in theory), or not. Not having that
information is a data quality fault, or rather a data format design
fault. That's basically what Herman said (OHLC is obsolete) and I
started writing in agreement with him, only I wrote a bit more than I
set out to!

Thanks for your comments.

 

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.21.3/1307 - Release Date: 3/2/2008 3:59 PM

 

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.21.3/1307 - Release Date: 3/2/2008 3:59 PM


No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.21.2/1304 - Release Date: 2/29/2008 8:18 AM

 

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.21.3/1307 - Release Date: 3/2/2008 3:59 PM

__._,_.___

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.21.3/1307 - Release Date: 3/2/2008 3:59 PM

Attachment: Syntaxerror.png
Description: PNG image