Chart script functions?

A forum for all EdgeRater users

Moderator: Chris White

Post Reply
henry1224
Posts: 457
Joined: Wed Feb 24, 2016 12:04 pm

Chart script functions?

Post by henry1224 »

Is there a function for OR?
I know that & is used for the AND function. I don't see a function for OR, is there any documentation for these symbols?

Henry
Chris White
Posts: 201
Joined: Mon Nov 29, 2010 9:21 pm

Re: Chart script functions?

Post by Chris White »

The symbol for OR is |

Take a look at the system scan named 'IanPctB Sell' to see an example

Code: Select all

B:= FML('IanPctB()[B]');
BW:= FML('IanPctB()[BW]');
FI:= FML('ForceIndex(13)[FI]');

Cond1:= (B - Ref(B, 1)) <= -.12;
Cond2:= B <= 1.2;
Cond3:= FI <= 0;
Cond4:= C < O;
Cond5:= C < SMA(C,9);
Cond6:= Count(Cross(B, BW), 40) == 0;
Cond7:= B < 0;
Cond8:= (B - Ref(B, 1)) <= -.5;


Event: (Cond1 & Cond2 & Cond3 & Cond4 & Cond5 & Cond6) | Cond7 | Cond8;
You can find some basic information on EdgeRater ChartScript here:
http://www.edgerater.com/docs/trading-s ... kstart.htm

The ChartScript language is very similar to the MetaStock Formula Language (MFL) and AmiBroker Formula Language (AFL). Any documentation for MFL will be useful such as:

http://www.equis.com/customer/resources ... Primer.pdf
Post Reply