NexusFi: Find Your Edge


Home Menu

 



Showing results 1 to 25 of 25
Search: Posts Made By: AlBundy
Forum: NinjaTrader January 24th, 2017, 04:08 PM
Replies: 6
Views: 2,253
Posted By AlBundy
Yes, it is a very long code because each byte of...

Yes, it is a very long code because each byte of the image is converted to a character. So a 1 KB image will produce a string of around 1'300 bytes.
Forum: NinjaTrader January 24th, 2017, 08:54 AM
Replies: 6
Views: 1,859
Posted By AlBundy
This works like a charm and the context menu is...

This works like a charm and the context menu is shown exactly on the mouse position where the double click occurred:
...
Forum: NinjaTrader January 24th, 2017, 07:54 AM
Replies: 6
Views: 1,859
Posted By AlBundy
Showing a context menu in the NinjaTrader chart

NT 7.0

How can I show a context menu in the chart [for example when a user double clicks in the chart]:

MenuItem [] menuManualButton = new MenuItem []
{
new MenuItem( "Text 1",...
Forum: NinjaTrader February 17th, 2015, 01:46 PM
Replies: 5
Views: 4,573
Posted By AlBundy
Pure Code

First thank you Mike for the link and I am posting now the pure code how I implemented it in my indicator and it works perfect:

// execute the internal method GoTo
dtDateTime = <the DateTime...
Forum: NinjaTrader February 16th, 2015, 04:52 AM
Replies: 6
Views: 4,969
Posted By AlBundy
SOLVED! Yes, Reflector was the key to...

SOLVED!



Yes, Reflector was the key to success. I found a solution how to remove manually drawn objects from the chart:


BindingFlags bfObject = BindingFlags.Instance |...
Forum: NinjaTrader February 14th, 2015, 07:34 PM
Replies: 6
Views: 4,969
Posted By AlBundy
Good. This is the official function. Due the fact...

Good. This is the official function. Due the fact NT can delete all objects and it is not running as an OS in a privileged mode there is a function which can delete manually added draw objects.
...
Forum: NinjaTrader February 14th, 2015, 05:06 PM
Replies: 6
Views: 4,969
Posted By AlBundy
RemoveDrawObject does not remove User objects from the Chart

Hi,

can it be the function RemoveDrawObject() does not delete objects which the user has added manually to the chart? I checked it many times and that far I do not see any problem/bug in the code....
Forum: NinjaTrader February 14th, 2015, 11:46 AM
Replies: 18
Views: 12,602
Posted By AlBundy
Ratfink, you are the best! In the ILine...

Ratfink, you are the best!

In the ILine object is StartY and EndY and the values are double --> the values are exact and with them I can re-draw the lines!

For me the case closed! Again thank...
Forum: NinjaTrader February 14th, 2015, 11:40 AM
Replies: 18
Views: 12,602
Posted By AlBundy
Yes, but a line has a StartY and EndY and here I...

Yes, but a line has a StartY and EndY and here I get only the start Y value.
Forum: NinjaTrader February 14th, 2015, 11:28 AM
Replies: 18
Views: 12,602
Posted By AlBundy
The issue is the .ToString() method returns only...

The issue is the .ToString() method returns only 2 digits after comma for StartY and EndY. You tested it probably with DAX Future. Try it with EURUSD and you will see the problem. When you draw a...
Forum: NinjaTrader February 14th, 2015, 10:21 AM
Replies: 18
Views: 12,602
Posted By AlBundy
I think it is not in the ChartControl object

I attached a file with all members of ChartObject.

There is Y and startY but nothing which looks like endY. I guess NT is saving this additional information somewhere else...

Somebody an idea?
Forum: NinjaTrader February 14th, 2015, 09:27 AM
Replies: 18
Views: 12,602
Posted By AlBundy
Unfortunately this is not possible/supported for...

Unfortunately this is not possible/supported for this object. The member is apparently not public. I try to get all members with the BindingFlags functionality.
Forum: NinjaTrader February 14th, 2015, 08:57 AM
Replies: 18
Views: 12,602
Posted By AlBundy
Sorry, but I don't understand how I should do it....

Sorry, but I don't understand how I should do it. In the IChartObject there is not any member for the Y values. Or what did you mean?
Forum: NinjaTrader February 14th, 2015, 07:45 AM
Replies: 18
Views: 12,602
Posted By AlBundy
How to get more than 2 decimal digits?

When I run co.ToString() I receive all information regarding the drawn objects. Unfortunately the .ToString() function displays for StartY & EndY only 2 decimal digits and this is not enough -...
Forum: NinjaTrader November 24th, 2014, 12:34 PM
Replies: 3
Views: 1,494
Posted By AlBundy
Probably solution

This works fine for me:
https://nexusfi.com/ninjatrader-programming/27079-ninjatrader-read-instrument-list.html#post322490

I can write a function which reads all instruments. With some logic I...
Forum: NinjaTrader November 24th, 2014, 11:14 AM
Replies: 3
Views: 1,494
Posted By AlBundy
This depends on the user who is working with the...

This depends on the user who is working with the indicator. It can be between 1 and 30


Short version: No
Long Version:

As programmer I have the Log section open. But I am used to write...
Forum: NinjaTrader November 24th, 2014, 02:47 AM
Replies: 3
Views: 1,494
Posted By AlBundy
Validate symbol/instrument before using it in NinjaTrader

Hi,

is there a function which checks if a symbol is valid? I need it for this situation:
For my strategy the symbols are stored in a text file. While the initialization I call for each symbol in...
Forum: NinjaTrader July 30th, 2014, 05:33 AM
Replies: 2
Views: 1,329
Posted By AlBundy
Open New Chart Programmatically

Hi,

somebody asked already this question in NT forum: Open charts - NinjaTrader Support Forum (http://www.ninjatrader.com/support/forum/showthread.php?t=55267)

As expected NT does not support...
Forum: NinjaTrader July 30th, 2014, 03:39 AM
Replies: 6
Views: 2,253
Posted By AlBundy
Solution

Hi Mike,

thank you for the perfect hint regarding base64!
This is the code which works:

using System.IO;
public Bitmap base64ToImage( string base64String )
{
...
Forum: NinjaTrader July 17th, 2014, 02:45 PM
Replies: 5
Views: 2,055
Posted By AlBundy
Thread closed

Thank you very much cory. I tried the Splitter and it was exactly what I need. Instead of Splitter I will use probably "Panel".

Again thank you! I was thinking too complicated - not that much...
Forum: NinjaTrader July 17th, 2014, 12:45 PM
Replies: 5
Views: 2,055
Posted By AlBundy
Thank you for the link. I have now this problem:...

Thank you for the link. I have now this problem: I can compile it without any error but the indicator does not appear in the indicator list when I want to attach it to the chart.

Thank you!
Forum: NinjaTrader July 17th, 2014, 07:00 AM
Replies: 5
Views: 2,055
Posted By AlBundy
Changing size of chart window with ChartControl in NT

Hi,

does somebody know how the size of the chart window can be programmatically resized with the ChartControl object?

What I want to do:
I want te reduce the width of the chart window in order...
Forum: NinjaTrader July 9th, 2013, 05:49 PM
Replies: 4
Views: 1,603
Posted By AlBundy
Data Series --> Bar Type

Yes, you are right. I meant Bar Type. I wrote Data Series because it is called like this in the NT menu.
OK. Thank you for the information. I have to do the very tiresome job and restart NT each...
Forum: NinjaTrader July 8th, 2013, 05:39 PM
Replies: 4
Views: 1,603
Posted By AlBundy
I want to create my own version of Renko Data...

I want to create my own version of Renko Data Series. The point is each time I change something in the C# code I have to restart NT because the compiled code is not activated by NT.
Regardless what...
Forum: NinjaTrader July 8th, 2013, 03:15 PM
Replies: 4
Views: 1,603
Posted By AlBundy
Reload custom data series

Hi,

I want to create my own data series. I have now the problem I don't know how to reload it without always restarting NT. NT support cannot help me.
I hope there is a simple solution otherwise...
Showing results 1 to 25 of 25

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