Understanding Pseudo Code
1 replies
abeylin
9 years ago #112259
Hi everybody. I have some troubles understanding Pseudo code. Could somebody please help?
What is:
1. Close(1), Open(7) – this is an average on n days? Or is it a value n days behind today?
2. “Something Crosses Something”.
Example: Close(8) Crosses Below Ichimoku(9, 26, 52, Tenkan-sen)
The term “crosses below” means that first line crosses second line down, right?
3. What is “Something Closes below Something.” Here it Closes, not Crosses, I have no idea what could it be…
Example: Close(4) Closes Below ParabolicSAR(0.02, 0.2))
4. LowestInRange(17, 0, 18, 0) – there are four parameters, what do they mean? Also it is applied to which price? To close or to high?
Also sometimes I get things like “true and Condition”, which is redundant. Would it be possible to add a check in order to avoid such things in the future?
Mark Fric
9 years ago #124902
Hello,
1. Close(1) means close 1 bar ago
Open(7) means open 7 bars ago
2. something crosses something – as you say, it means first line crosses the second one
3. something closes below something – this is usually used with price data
Close(4) Closes Below ParabolicSAR(0.02, 0.2)). It means that the bar 4 bars ago closed below parabolic SAR.
It doesn’t need to cross the indicator, it only needs to close below it.
4. LowestInRange(HourFrom, MinuteFrom, HourTo, MinuteTo) – it returns the lowest low during given time range
5. Also sometimes I get things like “true and Condition”, which is redundant. Would it be possible to add a check in order to avoid such things in the future?
ok, I’ll look at this, it should be filtered out
Mark
StrategyQuant architect
Viewing 1 replies (of 1 total)