FUZZY LOGIC - EASYLANGUAGE CODE

Back Home Up

 

Home
Software
Prices
Download
Yahoo Charts


NEW:
ADVANCED
TRADESTATION TECHNIQUE

US Markets Daily
snapshots

Technical
Description


Forthcoming Releases:

Fuzzy Logic:
sFLC3
DLL & API


Neural Net:
Release of NXL3
DLL & API


 

FUZZY LOGIC - API & EASYLANGUAGE

The Fuzzy Logic EL code is not protected. Here is some sample code for a FuzzyStoK indicator.  Providing you normalise inputs to a [-1:+1] range, nothing stops you from changing the Input1 and Input2 definitions below to build your own FL controller in no time.  You should however first familiarise yourself with the built-in Fuzzy Set and Rule Set models (FS3, FS5, RS3, RS5).

Sample Indicator EL Code: FuzzyStoK and FuzzyRSI

For simplicity sake, building and running a FLC is made of only a few calls grouped in a FLC_Single EL function, also unprotected.  It shows how the sFLC3 library is used to build and run a FL controller in any TradeStation Analysis Technique. (Note there can be minor variations in released version of this function).

The 1st call is a TSFLC_Init call on CurrentBar = 1
The 2nd call is a TSFLC_BuildTurnKeyFLC also on CurrentBar = 1

A number of return codes will assist the user and will validate whether calculations can be effected then on each bar.

Two calls can then be used: TSFLC_CalcOutput and TSFLC_GetOutputs.

It is recommended to only use the provided FLC_Single function, in order to avoid problems like memory leaks. Experienced programmers can obviously access any API call.

One will notice that the FLC_Single function provides both the composite fuzzy output (using the fuzzy centroid method in current version) or each individual fuzzy output level so that a specific post-processing action (filter) be applied instead.

EL Code: Fuzzy_EL


Back to FL for TradeStation


Home Up FUZZY LOGIC EASY LANGUAGE CODE Best viewed with MS Internet Explorer 5 and above

Page last modified: May 08, 2008
Copyright © ForeTrade Technologies 21st century and thereafter