NexusFi: Find Your Edge


Home Menu

 



Showing results 1 to 7 of 7
Search: Posts Made By: SamirOfSalem
Forum: NinjaTrader November 22nd, 2020, 03:36 AM
Replies: 14
Views: 3,698
Posted By SamirOfSalem
Hello Ky. Sorry if I confused you. To...

Hello Ky.

Sorry if I confused you. To explain, here's some sample code with comments around the relevant lines:


namespace NinjaTrader.NinjaScript.Indicators
{
public class KyLine :...
Forum: NinjaTrader November 21st, 2020, 11:13 AM
Replies: 14
Views: 3,698
Posted By SamirOfSalem
I can't help but feel that using "Stroke"...

I can't help but feel that using "Stroke" would've been a better approach. It would've let you apply color, opacity and dashstyling as we. In NinjaScript, strokes are generally easier to deal with...
Forum: NinjaTrader November 21st, 2020, 10:22 AM
Replies: 14
Views: 3,698
Posted By SamirOfSalem
Hmm.. maybe we're on the wrong track. So you've...

Hmm.. maybe we're on the wrong track. So you've changed the "width"? With a thin line you'll hardly be able to tell the difference, so the effect of opacity will be kind of visibly lost anyway. With...
Forum: NinjaTrader November 21st, 2020, 08:50 AM
Replies: 14
Views: 3,698
Posted By SamirOfSalem
Not sure "AddLine" is the best way to go for...

Not sure "AddLine" is the best way to go for marking zones.

But if you must, and if this is the first line applied by your indicator, then add this next statement:

Lines[0].Width = 5; //for a...
Forum: NinjaTrader November 21st, 2020, 07:19 AM
Replies: 14
Views: 3,698
Posted By SamirOfSalem
LOL See what you made me do! I copy-pasted from...

LOL See what you made me do! I copy-pasted from your code :becky:

It's not SolidColorBrushes, just SolidColorBrush.

Try this:

AddLine(new SolidColorBrush(Color.FromArgb(33,...
Forum: NinjaTrader November 21st, 2020, 06:22 AM
Replies: 14
Views: 3,698
Posted By SamirOfSalem
Hi Ky. From what I can tell, you're missing:...

Hi Ky.

From what I can tell, you're missing:
- "new" before SolidColorBrushes, it should be AddLine( new SolidColorBrushes(Color.FromArgb(33, 255, 0, 0))
- a comma before the 0 you're using for...
Forum: NinjaTrader July 21st, 2020, 08:53 AM
Replies: 14
Views: 3,698
Posted By SamirOfSalem
Hi Bullywig. See if using Color.FromArgb()...

Hi Bullywig.

See if using Color.FromArgb() works.

for example:


Brush Red33percent = new SolidColorBrush(Color.FromArgb(33, 255, 0, 0));
Red33percent.Freeze();
Showing results 1 to 7 of 7

What unexpected challenges have you encountered while trading on a "Funded Trader" platform?

 


 
 


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top