예제 #1
0
 private void checkBrokenLevels(JBTPOProfile profile)
 {
     foreach (JBTPOProfile each in this.tpoProfiles)
     {
         if (each != profile)
         {
             if (each.tradingHours == RTH)
             {
                 if (ShowPOC && each.checkBrokenPOC(profile.getRangeLow(), profile.getRangeHigh()))
                 {
                     DrawLabeledRay("POC", each, each.getPOC(), getBrush(true, POCColor));
                 }
                 if (ShowHILO && each.checkBrokenHigh(profile.getRangeLow(), profile.getRangeHigh()))
                 {
                     DrawLabeledRay("HI", each, each.getRangeHigh(), getBrush(true, HILOColor));
                 }
                 if (ShowHILO && each.checkBrokenLow(profile.getRangeLow(), profile.getRangeHigh()))
                 {
                     DrawLabeledRay("LO", each, each.getRangeLow(), getBrush(true, HILOColor));
                 }
                 if (ShowVA && each.checkBrokenValHigh(profile.getRangeLow(), profile.getRangeHigh()))
                 {
                     DrawLabeledRay("VAH", each, each.getValHigh(), getBrush(true, VAColor));
                 }
                 if (ShowVA && each.checkBrokenValLow(profile.getRangeLow(), profile.getRangeHigh()))
                 {
                     DrawLabeledRay("VAL", each, each.getValLow(), getBrush(true, VAColor));
                 }
             }
             else
             {
                 if (ShowONPOC && each.checkBrokenPOC(profile.getRangeLow(), profile.getRangeHigh()))
                 {
                     DrawLabeledRay("ON POC", each, each.getPOC(), getBrush(true, ONPOCColor));
                 }
                 if (ShowONHILO && each.checkBrokenHigh(profile.getRangeLow(), profile.getRangeHigh()))
                 {
                     DrawLabeledRay("ON HI", each, each.getRangeHigh(), getBrush(true, ONHILOColor));
                 }
                 if (ShowONHILO && each.checkBrokenLow(profile.getRangeLow(), profile.getRangeHigh()))
                 {
                     DrawLabeledRay("ON LO", each, each.getRangeLow(), getBrush(true, ONHILOColor));
                 }
                 if (ShowONVA && each.checkBrokenValHigh(profile.getRangeLow(), profile.getRangeHigh()))
                 {
                     DrawLabeledRay("ON VAH", each, each.getValHigh(), getBrush(true, ONVAColor));
                 }
                 if (ShowONVA && each.checkBrokenValLow(profile.getRangeLow(), profile.getRangeHigh()))
                 {
                     DrawLabeledRay("ON VAL", each, each.getValLow(), getBrush(true, ONVAColor));
                 }
             }
         }
     }
 }
예제 #2
0
 private void checkBrokenLevels(JBTPOProfile profile)
 {
     foreach (JBTPOProfile each in this.tpoProfiles)
     {
         each.checkBrokenLevels(profile.getRangeLow(), profile.getRangeHigh());
     }
 }
예제 #3
0
 private void drawTPOLevels(JBTPOProfile profile)
 {
     DrayLabeledRay("HI", tpoProfile, tpoProfile.getRangeHigh(), getBrush(true, Brushes.Green));
     DrayLabeledRay("LO", tpoProfile, tpoProfile.getRangeLow(), Brushes.Red);
     DrayLabeledRay("POC", tpoProfile, tpoProfile.getPOC(), Brushes.Pink);
     DrayLabeledRay("VAH", tpoProfile, tpoProfile.getValHigh(), Brushes.White);
     DrayLabeledRay("VAL", tpoProfile, tpoProfile.getValLow(), Brushes.White);
 }
예제 #4
0
 private void drawTPOLevels(JBTPOProfile profile)
 {
     if (profile.tradingHours == RTH)
     {
         if (ShowHILO)
         {
             DrawLabeledRay("HI", tpoProfile, tpoProfile.getRangeHigh(), getBrush(profile.highBroken, HILOColor));
             DrawLabeledRay("LO", tpoProfile, tpoProfile.getRangeLow(), getBrush(profile.lowBroken, HILOColor));
         }
         if (ShowPOC)
         {
             DrawLabeledRay("POC", tpoProfile, tpoProfile.getPOC(), getBrush(profile.pocBroken, POCColor));
         }
         if (ShowVA)
         {
             DrawLabeledRay("VAH", tpoProfile, tpoProfile.getValHigh(), getBrush(profile.valHighBroken, VAColor));
             DrawLabeledRay("VAL", tpoProfile, tpoProfile.getValLow(), getBrush(profile.valLowBroken, VAColor));
         }
     }
     else
     {
         if (ShowONHILO)
         {
             DrawLabeledRay("ON HI", tpoProfile, tpoProfile.getRangeHigh(), getBrush(profile.highBroken, ONHILOColor));
             DrawLabeledRay("ON LO", tpoProfile, tpoProfile.getRangeLow(), getBrush(profile.lowBroken, ONHILOColor));
         }
         if (ShowONPOC)
         {
             DrawLabeledRay("ON POC", tpoProfile, tpoProfile.getPOC(), getBrush(profile.pocBroken, ONPOCColor));
         }
         if (ShowONVA)
         {
             DrawLabeledRay("ON VAH", tpoProfile, tpoProfile.getValHigh(), getBrush(profile.valHighBroken, ONVAColor));
             DrawLabeledRay("ON VAL", tpoProfile, tpoProfile.getValLow(), getBrush(profile.valLowBroken, ONVAColor));
         }
     }
 }