Hello,
here's the latest version and I say, the results are (on my PC) very great. To get these good results, I had to create the logic and algorithms for the Flex Function totally new. My frustration while testing these functions was unbelievable.
New/modified functions:
ExtFml( "TMW.FlexCreate", Data Array, Price Field 0(Open) 1(High) 2(Low) 3(Close), Multiplier for Timeframe, Delay: 0=Dynamic, 1=Delay)
This function has four input Parameters:
1) Data Array: Open, High, Low, Close or a function
2) Price Field (Number) : 0 = Open, 1= High, 2= Low, 3 = Close
3) Multiplier for Timeframe (Number)
4) (Number) Last bar Dynamic = 0, Last bar Delay = 1
By using this function on Daily and Intraday (no Tick) Bar, the data are compressed by the factor Multiplier, by using the function on a Tick Chart, the Multiplier is a factor for minutes.
Examples:
Simple Close of a two Bar Close
Create:=ExtFml( "TMW.FlexCreate", C, 3,2,0);
Create
20 Bar exp. Moving Average of a two Bar Close
Create:=ExtFml( "TMW.FlexCreate", C, 3,2,0);
Mov(Create,20,E)
ExtFml( "TMW.FlexLocalize", Flex Array, Multiplier for Timeframe)
This function has two input Parameters:
1) Flex Array: Result of the TMW.FlexCreate
2) Multiplier: Must be exact the same value as in TMW.FlexCreate.
Examples:
Create and Plot a two Bar Close
Create:=ExtFml( "TMW.FlexCreate", C, 3,2,0);
Localize:= ExtFml( "TMW.FlexLocalize", Create, 2);
Localize
Use with external Function
Create:=ExtFml( "TMW.FlexCreate", C, 3,2,0);
Localize:=ExtFml( "TMW.FlexLocalize", Create, 2);
ASI:=ExtFml( "ASI.sma", Localize, 9);
ASI
Restriction/Limits:
You can create on a intraday/daily Char any period, where: (Intervall * Multiplier )< 2359
480 Minute High Bar on a 60 Minute Chart: ExtFml( "TMW.FlexCreate", H, 1,8,0);
87 Minute High Bar on a 1 Minute Chart: ExtFml( "TMW.FlexCreate", H, 1,87,0);
If you want not the High of the High, but the Close of the High: ExtFml( "TMW.FlexCreate", H, 3,87,0);
Due to many problems with various MS Versions, I currently do not check, if you use a correct (Intraday, Daily) or an incorrect Time Frame (Weekly, Monthly, …)
The version is tested with MS 8.01, MS 9.1 Pro.
Please enjoy, test and give me some feedback :D
Chris
P.S: The old version will be removed from soon