Hello!
I try converted WLD4 strategy to C# code.
WLD4 has strange circuit of calculation.
Example: I connected to WLD4 the history data where prices has next type:
Open: 740,94
High: 742,33
Low: 740,59
Close: 732,67
Next in the code WLD4, using function print('High: '+ FloatToStr(@#High[Bar])), in the debug windows I can see next value:
High: 742,330017089844
and ....
Open: 740,940002441406
Low: 740,590026855469
Close: 732,679992675781
And when I calculation in WLD4 code sort of: 1156,48 - 1154,80 I get thye bug again: 1,68004841515 instead 1,68.
And what is it?
How can I transfer WLD's strategy to C# code if WLD's float and C#'s double has so many differences?
I try converted WLD4 strategy to C# code.
WLD4 has strange circuit of calculation.
Example: I connected to WLD4 the history data where prices has next type:
Open: 740,94
High: 742,33
Low: 740,59
Close: 732,67
Next in the code WLD4, using function print('High: '+ FloatToStr(@#High[Bar])), in the debug windows I can see next value:
High: 742,330017089844
and ....
Open: 740,940002441406
Low: 740,590026855469
Close: 732,679992675781
And when I calculation in WLD4 code sort of: 1156,48 - 1154,80 I get thye bug again: 1,68004841515 instead 1,68.
And what is it?
How can I transfer WLD's strategy to C# code if WLD's float and C#'s double has so many differences?