Hello hardworking people,
I have read your forums , went though multiple sites and cannot find the simple answer i'm looking for,
if you would please be kind and offer your assistance it would be most honourable.
All I am trying to do is manipulate the program to show me a gapup with a desired percentage. For example a gapup with a % of less than 3%.
Could you please correct my code. I cannot for the life of me get it to work
Gapu= GapUp() ;
Gapd = GapDown();
PREVIOUSDAYCLOSE= Ref (C,-1);
FIRSTDAYBAR = Day() != Ref(Day(), -1);
firstbarOfDayOpen = ValueWhen( FIRSTDAYBAR, Open);
percent =((PREVIOUSDAYCLOSE - FIRSTDAYBAR)/PREVIOUSDAYCLOSE)*100;
Buy = Gapu AND percent < 2 ;/// A GapUp of less than 2%
Sell =0;
I have read your forums , went though multiple sites and cannot find the simple answer i'm looking for,
if you would please be kind and offer your assistance it would be most honourable.
All I am trying to do is manipulate the program to show me a gapup with a desired percentage. For example a gapup with a % of less than 3%.
Could you please correct my code. I cannot for the life of me get it to work
Gapu= GapUp() ;
Gapd = GapDown();
PREVIOUSDAYCLOSE= Ref (C,-1);
FIRSTDAYBAR = Day() != Ref(Day(), -1);
firstbarOfDayOpen = ValueWhen( FIRSTDAYBAR, Open);
percent =((PREVIOUSDAYCLOSE - FIRSTDAYBAR)/PREVIOUSDAYCLOSE)*100;
Buy = Gapu AND percent < 2 ;/// A GapUp of less than 2%
Sell =0;