Forum

I cant get the count of sell or buy positions?

Hi, it seems i cant get buy or sell positions but when i call CountBuyPositions() it will return all positions and when calling CountSellPositions() it doesn't return anything. this is my code: //+------------------------------------------------------------------+ int CountBuyPositions() { int

How to check when RSI cross some level for the first time after it came from level 50?

Hi everyone, i want to check when RSI cross some level (let say 20) for the first time after it came down from level 50, the second cross to same level i dont want it just the first one, and this is my attempt: bool FirstTouchLevel20() { int Lvl20TouchCount = 0 ; for ( int i = 1 ; i <= 100 ;