Login Page - Create Account

Support Board


Date/Time: Sun, 05 May 2024 02:21:46 +0000



Post From: Custom study syntax help needed

[2013-04-27 00:48:27]
User22396 - Posts: 191
Going way out on a limb here in tryin to modify some of Kiwi's older code for the AverageRange study from kiwi8.cpp...thanks kiwi!

Tryin to find the 'Minimum' of these 2 expressions...

A) sg.Subgraph[2]=sg.BaseDataIn[SC_HIGH][i-j]-sg.BaseDataIn[SC_OPEN][i-j]
B) sg.Subgraph[2]=sg.BaseDataIn[SC_OPEN][i-j]-sg.BaseDataIn[SC_LOW][i-j]

In a spreadsheet study would just be Min(a,b) so wasn't sure if it that easy to re-code? somehow I do not think so lol

I was able to create 2 new studies using A OR B above and compile with no errors but not sure how to find the minimum of both expressions in just one study

Thanks
B

Date Time Of Last Edit: 2013-04-27 00:48:45