资源加载中... loading...

MyLanguage

The platform supports write and design strategy in MyLanguage, which is compatible with most of the grammar, commands, and functions of the Wenhua MyLanguage. MyLanguage encourages building block programming, which breaks down complex algorithms into functions. It supports complex financial logic applications through concise grammar, specialized data structures and a powerful library of financial function libraris. Build applications in a modular way to improve efficiency and maintainability.

MyLanguage strategy example: System based on translational Bollinger channel

M := 12; // Parameter range 1, 20
N := 3; // Parameter range 1, 10
SDEV := 2; // Parameter range 1, 10
P := 16; // Parameter range 1, 20
//The strategy is a trend-following trading strategy for larger periods, such as daily.
//This model is only used as a case study for model development, and entering the market accordingly will be at your own risk.
////////////////////////////////////////////////////////
//Panning BOLL Channel Calculation
MID:=MA(C,N);//Calculate the middle track       
TMP:=STD(C,M)*SDEV;//Calculate the standard deviation
DISPTOP:=REF(MID,P)+TMP;//Translate BOLL channel upper track
DISPBOTTOM:=REF(MID,P)-TMP;//Translate BOLL channel down track
//System admission
H>=DISPTOP,BPK;
L<=DISPBOTTOM,SPK;
AUTOFILTER;
C++ PINE Language