indiTraders - Forum for the Active Indian Trader  

Go Back   indiTraders - Forum for the Active Indian Trader > Tools > Software > ArthaChitra

Reply
 
Bookmark and Share LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 05-04-2015, 12:49 PM
joy joy is offline
indiTraders VIP
 
Join Date: Mar 2009
Posts: 1,200
Thanks: 1,106
Thanked 4,091 Times in 1,089 Posts
joy has a reputation beyond repute
joy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond repute
Default

Originally Posted by devdas View Post
Thanx Joy.

This was the behavior of that Combo box on reopening that frustrated me.
I poured more than 6- 8 hour for that thing but could not solve so left that in
limited time though basic it was correctly selecting MA type which was priority.

yup, I suppose its the initial pangs.

Originally Posted by devdas View Post
Another time consuming issue is proper intellisense.
ISeries interface was present but I didn't know and so first attempt of this
BB indicator involved two switch statement , one in OnInitislizeUp state change
and second in OnBarUpdate. This was very embarrassing for me that I was
taking this inefficient approach. This was giving a feeling that simple NT code
of the same would have been laughing on me.
Luckily I tried ISeries and it worked.

Overall I like the ArthaChitra , you have grafted many goodies which will show
their result as development proceed further.

Ya, I am using a free 3rd party editor (avelonedit/sharpdevelop), which unfortunately do not supports intellisense. for which I am using another 3rd party sw

lets see where I land.


P.S. You may also like to expose the Upper, Lower and Middle Series. This will help if you want to call them.

Code:
public ISeries<double> Upper
        {
        	get { return Values[0]; }
        }
       
       public ISeries<double> Middle
        {
        	get { return Values[1]; }
        }
        
        public ISeries<double> Lower
        {
        	get {return Values[2]; }
        }

thus user can call, say the Middle Series from code as
Code:
Values[0][0] =  AddIndicator<BollingerBands>(new object[]{ 20, 2.0d}).Middle[0];
thanks again.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 4 Users Say Thank You to joy For This Useful Post:
  #22 (permalink)  
Old 05-04-2015, 06:56 PM
devdas's Avatar
devdas devdas is offline
edevaay.com
 
Join Date: Mar 2009
Location: Tactical Hell....
Posts: 5,385
Thanks: 15,751
Thanked 18,328 Times in 5,077 Posts
devdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond repute
devdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond repute
Default

Originally Posted by joy View Post
devdas,
In the Bollinger Band xaml, the combo box does not carry maType info, when the indicator dialog is re-opened. this is due to the type mismatch between the binded element (string being binded to an enum).

To populate any enum values ArthaChitra, internally uses a markup extension.

Unfortunately the same cannot be used in user designed xaml, as the user code assembly is created dynamically and thus one cannot reference the usercode dll in the xaml template.

as an alternative, append an array of the enum and bind that array as the itemssource of the combobox.

in the code append the following:

Code:
public maType[] maTypes
{
	get
	{
		return (maType[])Enum.GetValues(typeof(maType));
	}
}
and modify the xaml as:
Code:
<ComboBox Grid.Column="1" ItemsSource="{Binding maTypes}" SelectedValue="{Binding MiddleMAType, Mode=TwoWay}" Margin="3"/>
the modified code is attached alongwith.

again, much appreciated for the hard work and for your support.

That was good trick.

One more small issue i tried but didnt succeeded.

See if i keep on reducing std deviation number from 2, every step correctly reduce by 0.1 , but after 1.1 it loose its format and display 1.0 as shown.
What might be the correct Xaml attribute to do this ?

__________________
Harvest The Moon !!
Nest The Market !!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 3 Users Say Thank You to devdas For This Useful Post:
  #23 (permalink)  
Old 05-04-2015, 07:45 PM
joy joy is offline
indiTraders VIP
 
Join Date: Mar 2009
Posts: 1,200
Thanks: 1,106
Thanked 4,091 Times in 1,089 Posts
joy has a reputation beyond repute
joy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond repute
Default

Originally Posted by devdas View Post
That was good trick.

One more small issue i tried but didnt succeeded.

See if i keep on reducing std deviation number from 2, every step correctly reduce by 0.1 , but after 1.1 it loose its format and display 1.0 as shown.
What might be the correct Xaml attribute to do this ?


seems like a double precision scenario. I have to fix it from my end.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 3 Users Say Thank You to joy For This Useful Post:
  #24 (permalink)  
Old 05-04-2015, 08:52 PM
devdas's Avatar
devdas devdas is offline
edevaay.com
 
Join Date: Mar 2009
Location: Tactical Hell....
Posts: 5,385
Thanks: 15,751
Thanked 18,328 Times in 5,077 Posts
devdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond repute
devdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond repute
Default

Joy, if you get time please look into this also.

I converted MovingMedian ma from NT, and as you can see its got converted successfully. All values are matching in NT and AC both.
Now i modified BollingerBands indi to have availability of MovingMedian ma but on applying BB with ma type MovingMedian its not working as expected.
I peep in both codes carefully but not getting the logical error.
Second figure shows BB forming with MovingMedian = 0 for all values.





Attached Files
File Type: zip MovingMedian.zip (1.2 KB, 5 views)
File Type: zip BB_Temp.zip (1.9 KB, 7 views)
__________________
Harvest The Moon !!
Nest The Market !!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 4 Users Say Thank You to devdas For This Useful Post:
  #25 (permalink)  
Old 05-04-2015, 11:12 PM
devdas's Avatar
devdas devdas is offline
edevaay.com
 
Join Date: Mar 2009
Location: Tactical Hell....
Posts: 5,385
Thanks: 15,751
Thanked 18,328 Times in 5,077 Posts
devdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond repute
devdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond repute
Default

Hope i am not bombarding too many question on you.

Here is another.

I was coding Volume bars type, but its not recognizing [Input] attribute.


__________________
Harvest The Moon !!
Nest The Market !!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to devdas For This Useful Post:
  #26 (permalink)  
Old 05-04-2015, 11:15 PM
devdas's Avatar
devdas devdas is offline
edevaay.com
 
Join Date: Mar 2009
Location: Tactical Hell....
Posts: 5,385
Thanks: 15,751
Thanked 18,328 Times in 5,077 Posts
devdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond repute
devdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond repute
Default

Originally Posted by devdas View Post
Hope i am not bombarding too many question on you.

Here is another.

I was coding Volume bars type, but its not recognizing [Input] attribute.



Sorry , just wrote and found the solution, perhaps wizard is not appending
namespace

using SharpCharts.Base.SharpScript;

included manually and comipling fine
__________________
Harvest The Moon !!
Nest The Market !!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 4 Users Say Thank You to devdas For This Useful Post:
  #27 (permalink)  
Old 06-04-2015, 12:29 AM
joy joy is offline
indiTraders VIP
 
Join Date: Mar 2009
Posts: 1,200
Thanks: 1,106
Thanked 4,091 Times in 1,089 Posts
joy has a reputation beyond repute
joy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond repute
Default

@ devdas,
not at all.

glad you could resolve the scenario.

I am looking at the other code. thanks for your patient.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 2 Users Say Thank You to joy For This Useful Post:
  #28 (permalink)  
Old 06-04-2015, 12:55 AM
joy joy is offline
indiTraders VIP
 
Join Date: Mar 2009
Posts: 1,200
Thanks: 1,106
Thanked 4,091 Times in 1,089 Posts
joy has a reputation beyond repute
joy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond repute
Default

Originally Posted by devdas View Post
Joy, if you get time please look into this also.

I converted MovingMedian ma from NT, and as you can see its got converted successfully. All values are matching in NT and AC both.
Now i modified BollingerBands indi to have availability of MovingMedian ma but on applying BB with ma type MovingMedian its not working as expected.
I peep in both codes carefully but not getting the logical error.
Second figure shows BB forming with MovingMedian = 0 for all values.






ok, bugs.

The referenced indicator (as called by AddIndicator method) didnt call the StartUp state. Will be resolved in the next version

As of now for testing purpose try moving the codes from StartUp to Initialize or
if (CurrentBar == 0)
{}
//rest of the codes.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 3 Users Say Thank You to joy For This Useful Post:
  #29 (permalink)  
Old 06-04-2015, 02:49 AM
devdas's Avatar
devdas devdas is offline
edevaay.com
 
Join Date: Mar 2009
Location: Tactical Hell....
Posts: 5,385
Thanks: 15,751
Thanked 18,328 Times in 5,077 Posts
devdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond repute
devdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond reputedevdas has a reputation beyond repute
Default

Joy,

What is the equivalent of NT's

bars.IsNewSession(time, isRealTime) ?
__________________
Harvest The Moon !!
Nest The Market !!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to devdas For This Useful Post:
  #30 (permalink)  
Old 06-04-2015, 09:53 AM
joy joy is offline
indiTraders VIP
 
Join Date: Mar 2009
Posts: 1,200
Thanks: 1,106
Thanked 4,091 Times in 1,089 Posts
joy has a reputation beyond repute
joy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond reputejoy has a reputation beyond repute
Default

Originally Posted by devdas View Post
Joy,

What is the equivalent of NT's

bars.IsNewSession(time, isRealTime) ?

hhmm, not yet implemented. since as of now ArthaChitra supports only a single bar series, session templates are not prioritized.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 2 Users Say Thank You to joy For This Useful Post:
Reply

indiTraders - Forum for the Active Indian Trader > Tools > Software > ArthaChitra


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT +5.5. The time now is 04:22 PM.


vBulletin Copyright by vBulletin

Content Relevant URLs by vBSEO 3.3.2