示例#1
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);
 }
示例#2
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));
         }
     }
 }