Manta, Ecuador
Site Administrator Developer Swing Trader
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,320 since Jun 2009
Thanks Given: 33,142
Thanks Received: 101,475
|
As you know, I like to score trades. Say you measure 10 different things, and maybe some have more weight than others, then you arrive at a total score to help you decide how to trade.
I usually just output the score in text form, but I wrote a quick way to graphically illustrate it.
if (score > 0)
{
//infotext = " LONG: ";
int x = 0;
while (x < score)
{
infotext += "▓"; // alt-178
x++;
}
infocolor = Color.CornflowerBlue;
}
if (score < 0)
{
//infotext = " SHORT: ";
score = score-score-score; // turns a negative score to a positive one
int x = 0;
while (x < score)
{
infotext += "▓"; // alt-178
x++;
}
infocolor = Color.Maroon;
}
//if (score == 0)
// infotext = " FLAT:";
int y = 9; // maximum score
while (y > score)
{
infotext += "░"; // alt-176
y--;
}
DrawTextFixed("Info", infotext, TextPosition.BottomRight, Color.White, new Font("Arial", 8, FontStyle.Bold), infocolor, infocolor, 8);
So in practice this is what it looks like:
You might be seeing this on my future charts. As with most everything, I am still tweaking it!
Mike
|