PDA

View Full Version : My code for FinWin system


genius75
01-02-2009, 04:17 AM
Hello.
Does anybody know why i can't get my arrows closer to candles on any European market? On any American market is everything OK.

1st picture is European market FGBL. Second NQ.
My code is too long for this post. You can find it text format as a attachment.


I would be grateful for any help. THANK YOU.

Thank you so much. GE. :o

TAJTrades
01-02-2009, 04:40 AM
Try replacing all DrawArrow code:

DrawArrowDown("Down" + CurrentBar, true, 0, High[0] + 1, Color.Red);

With:

DrawArrowDown("Down" + CurrentBar, true, 0, High[0] + 1*TickSize, Color.Red);

thereby creating arrows that are set a fixed number of ticks from the bar

NinjaTrader_Bertrand
01-02-2009, 04:49 AM
Thanks for this useful advise TAJTrades!

genius75
01-02-2009, 09:41 PM
Thank you for your time but it did not work.

As you can see on my pictures it works on US market, but not on European ;)

No clue why.

Thank you for any help.

thrunner
01-03-2009, 07:09 AM
It should work. Try replacing ALL DrawArrow (Up and Down) and DrawText with n*TickSize and vary the value 'n'.

genius75
01-03-2009, 09:44 PM
It should work. Try replacing ALL DrawArrow (Up and Down) and DrawText with n*TickSize and vary the value 'n'.


Could you please send me a PM with that code.

It really doesn't work for me.

Thank you.

cls71
01-04-2009, 02:29 AM
Try replacing all DrawArrow code:

DrawArrowDown("Down" + CurrentBar, true, 0, High[0] + 1, Color.Red);

With:

DrawArrowDown("Down" + CurrentBar, true, 0, High[0] + 1*TickSize, Color.Red);

thereby creating arrows that are set a fixed number of ticks from the bar


Hello,

try 1.0 * TickSize.


DrawArrowDown("Down" + CurrentBar, true, 0, High[0] + 1.0*TickSize, Color.Red);

genius75
01-04-2009, 04:00 AM
Hello,

try 1.0 * TickSize.


DrawArrowDown("Down" + CurrentBar, true, 0, High[0] + 1.0*TickSize, Color.Red);


Thank you for your time, but I can't save it with this

CS0103 error .... :confused::confused:

Any other idea? ;)

cls71
01-04-2009, 04:37 AM
CS0103 is an error about variables declaration.

The sentence:
DrawArrowDown("Down" + CurrentBar, true, 0, High[0] + 1.0*TickSize, Color.Red);
is correct.

I think that your code have an error in other place, but not in DrawArrowDown ...

If you post the code maybe I could help you.

genius75
01-04-2009, 09:25 AM
CS0103 is an error about variables declaration.

The sentence:
DrawArrowDown("Down" + CurrentBar, true, 0, High[0] + 1.0*TickSize, Color.Red);is correct.

I think that your code have an error in other place, but not in DrawArrowDown ...

If you post the code maybe I could help you.

My code attached

NinjaTrader_Bertrand
01-04-2009, 09:46 AM
Hi, try using TickSize (remember NinjaScript is case sensitive), then your posted code should work.

genius75
01-04-2009, 10:48 PM
Hi, try using TickSize (remember NinjaScript is case sensitive), then your posted code should work.


YES!!!!!!!!!!!

THANK YOU SO MUCH!!!!

IT WORKS!!

THANK YOU GUYS!!

Have a successful year 2009!!

vrathee
01-05-2009, 12:10 AM
YES!!!!!!!!!!!

THANK YOU SO MUCH!!!!

IT WORKS!!

THANK YOU GUYS!!

Have a successful year 2009!!
Can somebody post the complete Zip file of the same.

Regards

genius75
01-05-2009, 12:27 AM
Can somebody post the complete Zip file of the same.

Regards


Hi there.

Here is your zip file.

NinjaTrader_Bertrand
01-05-2009, 02:11 AM
Great you got it working, a happy 2009 to you as well.

To export a NinjaScript file go to File > Utilities > Export NinjaScript.

To get rid of any prorgramming errors showing up in your files then, please see this tip - http://www.ninjatrader-support2.com/vb/showthread.php?t=4678

genius75
01-05-2009, 02:19 AM
Great you got it working, a happy 2009 to you as well.

To export a NinjaScript file go to File > Utilities > Export NinjaScript.

To get rid of any prorgramming errors showing up in your files then, please see this tip - http://www.ninjatrader-support2.com/vb/showthread.php?t=4678


Thank you. I still have to learn a lot :)

RJay
01-05-2009, 11:05 AM
Hi there.

Here is your zip file.

Hi All,

This is a general posting to everyone who is sharing their indicators.

Could you also upload a chart picture of the indicator at the same time please.

It really helps to see what type of indicator is being posted.

Thank You,

RJay

genius75
01-05-2009, 06:05 PM
Hi All,

This is a general posting to everyone who is sharing their indicators.

Could you also upload a chart picture of the indicator at the same time please.

It really helps to see what type of indicator is being posted.

Thank You,

RJay

RJay ... check my first post please.

Thank you.

RJay
01-06-2009, 07:59 AM
I didn't scroll down far enough yesterday.

Please accept my apology,

RJay :o:o:o

genius75
01-06-2009, 09:31 AM
I didn't scroll down far enough yesterday.

Please accept my apology,

RJay :o:o:o

No problem. Hope you will use it :D

DMC197807
02-02-2010, 12:58 PM
Hi, a friend referred me to this link and to this indicator but I'm having trouble finding background on it, how it works, what it's supposed to do and what it can be trusted to do (and not do). Is this indicator more fully described elsewhere, either in the forum or by link to a site? TIA

genius75
02-07-2010, 05:03 PM
Not in english language. Only in czech.

Jaroslav
10-05-2010, 10:16 AM
Hello.
Does anybody know why i can't get my arrows closer to candles on any European market? On any American market is everything OK.

1st picture is European market FGBL. Second NQ.
My code is too long for this post. You can find it text format as a attachment.


I would be grateful for any help. THANK YOU.

Thank you so much. GE. :o


Hallo there...
Sry about my English.

I try FINWINcode with + 1*TickSize,
I think, that problem could be solved by drawing Text based on Arrow, not upon the DrawBar*1Tick.
But I am not programmer and I am unable to programe it ;) But I try to explain it in Code

DrawArrowDown("Down" + CurrentBar, true, 0, High[0] + 1*TickSize, Color.Red);
DrawText("Up text" + DrawArrowDown, "0/100", 0, Low[0] + 1*TickSize, Color.DarkGreen);


A ti co mluvi cesky.
Proste sipku nechat vykreslit na zaklade BARU a nasledny popisek u sipky vykreslovat na základě VYKRESLENE SIPKY !!! (Ne BARU) - to je cely problem, proc to dela neplechu.

DrawArrowDown("Down" + CurrentBar, true, 0, High[0] + 1*TickSize, Color.Red);
DrawText("Up text" + DrawArrowDown, "0/100", 0, Low[0] + 1*TickSize, Color.DarkGreen);


Jarda

milos.adamec
11-04-2010, 09:18 AM
Ahoj, obchodujes podle tech indikatoru? ja jsem programoval FW strategii, zatim s 2V a BigV ale autobacktestovane vysledky nejsou nic moc...

Jaroslav
11-04-2010, 10:01 AM
Ahoj,

zatim jen backtestuji.
FINWIN indikator je hezky, ale bylo by potreba ho trosku upravit, aby nelezl text popisku do vykreslene sipky a to nevim jak udelat.

Jinak co se toho tyce, tak obchodovani jen podle indikatoru je samo o sobe ztratove. Clovek to musi jeste hodne filtrovat podle podminek, co rikali na kurzu.
Pak je ten system (zda se) ziskovy.

milos.adamec
11-04-2010, 12:02 PM
Ok, diky za informaci. Zabyvam se tradingem asi 2 mesice , mam nactene nejake knihy a na kurz FW se chystam akorat mi prijde ze prvni lekce mi v soucasny dobe uz moc k nicemu nebude a primo na druhou se prihlasit nelze. Shanel jsem nekoho kdo se tradingem zabyva a mel by chut trochu spolupracovat, hlavne co se tyka praxe pri prvnich krocich, nemel bys zajem nezavazne? je mi 35 a jsem z Trutnova (povolanim programator) vcera jsem poslal $$ na ucet ale zatim jen min. limit aby mi sly data zdarma a fungoval sim101 ucet. Rozmysli a kdyztak se ozvi, Milos.

Jaroslav
11-05-2010, 05:20 AM
Ok, diky za informaci. Zabyvam se tradingem asi 2 mesice , mam nactene nejake knihy a na kurz FW se chystam akorat mi prijde ze prvni lekce mi v soucasny dobe uz moc k nicemu nebude a primo na druhou se prihlasit nelze. Shanel jsem nekoho kdo se tradingem zabyva a mel by chut trochu spolupracovat, hlavne co se tyka praxe pri prvnich krocich, nemel bys zajem nezavazne? je mi 35 a jsem z Trutnova (povolanim programator) vcera jsem poslal $$ na ucet ale zatim jen min. limit aby mi sly data zdarma a fungoval sim101 ucet. Rozmysli a kdyztak se ozvi, Milos.
Zabyvam se tradingem cca 3/4 roku.
Jsem rad, ze jsem zatim neudelal tu blbost, ze jsem poslal $$ na ucet. Uz bych o ne davno prisel.
Data mam pre ZenFire jako DEMO. Respektive ani DEMo ucet nepotrebujes, NINJA ti umoznuje stahnout 2roky historickych dat.
Uz pul roku studuju a porad zjistuju, jak malo toho umim.
A cim vic toho znam, tim vice zjistuji, jak malou cestu jsem urazil.

Mimochodem ten E-mini I neni zbytecnej kurz. Ikdyz jsme mel precteny jejich knizky, clovek se tam hodne dozvedel.

NinjaTrader_Vincent
11-05-2010, 05:59 AM
Hi,

Can you please post your notes in English as this is an American/English forum.

Thank you for your cooperation.


Vince

miroslav
01-19-2012, 01:34 PM
Hello,

does anybody know how to include into code bigger fonts of the text and size of the arrow?

Example of the code line will be excellent

Thank you

koganam
01-19-2012, 01:55 PM
Hello,

does anybody know how to include into code bigger fonts of the text and size of the arrow?

Example of the code line will be excellent

Thank you

Maybe you could give the code that you have, so that someone may adjust it for you? :)

NinjaTrader_Joydeep
01-19-2012, 02:30 PM
Hello miroslav,
Thanks for your post.

For DrawText with configurable font size please you this overload
DrawText(string tag, bool autoScale, string text, DateTime time, double y, int yPixelOffset, Color textColor, Font font, StringAlignment alignment,Color outlineColor, Color areaColor, int areaOpacity)
For more please refer to the help guide here http://www.ninjatrader.com/support/helpGuides/nt7/index.html?drawtext.htm

You cannot change the size of the arrows, but you can refer to this post for any alternative http://www.ninjatrader.com/support/forum/showpost.php?p=24021&postcount=4

Please let me know if I can assist you any further.