war1 = Cross(20,StochD(14,3,3));
//war1 = Ref(Cross(20,StochD(14,3,3)),-1);
Filter = war1;
AddColumn(C,"");
Cross_ = Cross( 20, StochD( 14, 3, 3 ) );
war1 = Sum( Cross_, period = 2 ) == 1;
Filter = war1 AND Status( "lastbarinrange" );
AddColumn( C, "Price", format = 1.2 );
AddColumn( Cross_, "Cross", 1.0 );
AddColumn( Ref( Cross_, -1 ), "Ref(Cross,-1)", 1.0 );
None of these codes are working
Did you check your very basic knowledge of Automatic Analysis? If you check the box "n last days .... n = 2" then the last 2 days will be scanned or explored.None of these codes are working......Did you guys checked in your machine ?
please check the code in your machine.
Buy = Cross(20, StochD(14, 3, 3));
Filter = Buy;
AddColumn(C, "Cross StochD 20", 1.2);
Plot(Buy, "StochD Cross 20", colorBlack, styleArea);
None of these codes are working......Did you guys checked in your machine ?
please check the code in your machine.
I run the code with 1 year daily data ...no scrip found.....this is wrong ...because I find the same in other charting platform.
requirement is : Scanning stocks whose slow stochastic (14,3,3) has gone below 20 in last 1 or 2 bar
Cross_ = Cross( 20, StochD( 14, 3, 3 ) );
war1 = Sum( Cross_, period = 2 ) == 1;
dt = ValueWhen( war1, DateTime() );
Filter = Status( "lastbarinrange" );
AddColumn( dt, "DateTime of last cross", formatDateTime );
AddColumn( ValueWhen( war1, C ), "Price@Signal", format = 1.5 );
AddColumn( ValueWhen( war1, Cross_ ), "Cross", 1.0 );
AddColumn( ValueWhen( war1, Ref( Cross_, -1 ) ), "Ref(Cross,-1)", 1.0 );
Plot(StochD( 14, 3, 3 ),"StochD",colorWhite,styleLine);
Plot(war1,"crosses",colorRed,styleHistogram|styleownscale);
PlotGrid( 20, colorRed );
@trash,
I'll give an update to your code soon after executing.
by the way ,could you please explain what this does Sum( Cross_, period = 2 ) == 1; ? why Sum has to be ==1 ? I'm confused at this part
once again....thanks for your time and help.
Could you please take a look at this video and let me know if I'm missing something here..
http://screencast.com/t/Mr3eY39gUr
Cross_ = Cross( 20, StochD( 14, 3, 3 ) );
war1 = Sum( Cross_, period = 2 ) == 1;
Filter = war1 AND Status( "lastbarinrange" );
AddColumn( C, "Price", format = 1.5 );
AddTextColumn( WriteIf( Cross_, "TRUE", "" ), "Cross", 1.0 );
AddTextColumn( WriteIf( Ref( Cross_, -1 ), "TRUE", "" ), "Ref(Cross,-1)", 1.0 );
Cross_ = Cross( 20, StochD( 14, 3, 3 ) );
war1 = Sum( Cross_, period = 2 ) == 1;
dt = ValueWhen( war1, DateTime() );
Filter = Status( "lastbarinrange" );
SetSortColumns( 3 );
AddColumn( dt, "DateTime@Signal", formatDateTime, colorDefault, colorDefault, 130 );
AddColumn( ValueWhen( war1, C ), "Price@Signal", format = 1.5 );
AddTextColumn( WriteIf( ValueWhen( war1, Cross_ ), "TRUE", "" ), "Cross", 1.0 );
AddTextColumn( WriteIf( ValueWhen( war1, Ref( Cross_, -1 ) ), "TRUE", "" ), "Ref(Cross,-1)", 1.0 );
Plot(StochD( 14, 3, 3 ),"StochD",colorWhite,styleLine);
Plot(war1,"crosses",colorRed,styleHistogram|styleownscale);
PlotGrid( 20, colorRed );
You didn't check the "from: - to:" box for date range. You still had the "n last days" box checked. If you are exploring a list of securities and there are no results then that is because the conditions have not been met. Trash is better versed in Amibroker than me so follow his directions.@Wysiwyg,
I did put check the box "n last days .... n = 2" in Automatic Analysis and explored.....but somehow its not giving me any resultset.
Could you please take a look at this video and let me know if I'm missing something here..
http://screencast.com/t/Mr3eY39gUr
Cross_ = Cross( 20, StochD( 14, 3, 3 ) );
war1 = Sum( Cross_, period = 2 ) == 1;
dt = ValueWhen( war1, DateTime() );
Filter = Status( "lastbarinrange" );
SetSortColumns( 4 );
AddTextColumn( Interval( 2 ), "Time Frame", 1.0 );
AddColumn( dt, "DateTime@Signal", formatDateTime, colorDefault, colorDefault, 130 );
AddColumn( ValueWhen( war1, C ), "Price@Signal", format = 1.5 );
AddTextColumn( WriteIf( ValueWhen( war1, Cross_ ), "TRUE", "" ), "Cross", 1.0 );
AddTextColumn( WriteIf( ValueWhen( war1, Ref( Cross_, -1 ) ), "TRUE", "" ), "Ref(Cross,-1)", 1.0 );
Plot(StochD( 14, 3, 3 ),"StochD",colorWhite,styleLine);
Plot(war1,"crosses",colorRed,styleHistogram|styleownscale);
PlotGrid( 20, colorRed );
Hello and welcome to Aussie Stock Forums!
To gain full access you must register. Registration is free and takes only a few seconds to complete.
Already a member? Log in here.