- Joined
- 14 April 2007
- Posts
- 317
- Reactions
- 0
like to know what the easiest way is on how I can plot this signal on a chart. ie. with the use of Arrows for example.
Plot( C, " Close Price", colorGrey50, styleBar );
PlotShapes( shapeUpArrow*Buy, colorGreen, 0, L, -10 );
PlotShapes( shapeDownArrow*Sell, colorRed, 0, H, -10 );
Hi SB,
Thanks for the prompt reply.
Am I right in assuming that I just add the above to the bottom of my current code or should this be plotted as a different indicator?
what additional code would I need to add?
buy = ExRem( buy, sell );
sell = ExRem( sell, buy );
Edit: directly after your normal buy and sell.
Chorlton,
Usually the quickest way to get an answer to that sort of question is trial and error. Just try it and see if it works.
Cheers,
GP
x = IIf(H == HHV(H, 30), 1, 0);
//Plot( x, "x", colorBlue, styleLine);
y = BarsSince(x);
y = IIf( (Ref( y, -1) > 0 AND y == 0), Ref( y, -1), 0);
Plot( y, "y", colorYellow, styleLine);
z = Param( "delay", 5 , 1, 50, 1);
Buy1 = x AND AccDist() > Ref(AccDist(), -y);
Buy2 = x AND AccDist() > Ref(AccDist(), -z);
GraphXSpace = 10;
BackGround = colorBlack;
Plot( C, " Close Price", colorWhite, styleBar );
PlotShapes( shapeUpArrow*Buy1, colorGreen, 0, L, -10 );
PlotShapes( shapeUpArrow*Buy2, colorBlue, 0, H, -10 );
Chorton,
Not sure if the timing is right but best advice is to use the Plot() command to view each part of your code.
Code:x = IIf(H == HHV(H, 30), 1, 0); //Plot( x, "x", colorBlue, styleLine); y = BarsSince(x); y = IIf( (Ref( y, -1) > 0 AND y == 0), Ref( y, -1), 0); Plot( y, "y", colorYellow, styleLine); z = Param( "delay", 5 , 1, 50, 1); Buy1 = x AND AccDist() > Ref(AccDist(), -y); Buy2 = x AND AccDist() > Ref(AccDist(), -z); GraphXSpace = 10; BackGround = colorBlack; Plot( C, " Close Price", colorWhite, styleBar ); PlotShapes( shapeUpArrow*Buy1, colorGreen, 0, L, -10 ); PlotShapes( shapeUpArrow*Buy2, colorBlue, 0, H, -10 );
Also, right click on the chart and play around with the Buy2 delay using "Parameters".
SB
Out of interest could you elaborate on the idea of using the Delay function for debugging purposes. Just interested in your thinking behind it
Oxiana is such a tricky one. I find it needs some persuasion and in this case rather than gentle, try some harsh. This little devil is so slippery that it often sneaks under the radar and I'm totally at a loss what to do sometimes with OXR. Makes me sooooo mad!!!how to i get up shares eg. oxiana.
Ohh that's easy, try placing the mouse over the Amibroker icon and slowly (very slowly) moving it top to bottom. A tip is to be gentle trying to keep this motion as steady as possible. If you find the midpoint click it as quick as you can.and get up watchlists
Hello All,
I've recently coded an my own indicator for a stop loss and would like to reference it in a system that I am developing rather than re-writing the code again.
Does anyone know how I can do this?
I'm looking through the manual but its not obvious
Thanks in advance,
Chorlton
Hi Chorlton --
Two possibilities come to mind --
1. Save the code in the /include subdirectory and have AmiBroker merge it into your new system with the #include directive. See page 120 of Quantitative Trading Systems.
2. Compile your stop loss as a dll, save it in the /plugins subdirectory, and call it whenever you need it. See Appendix A.
Will either of these work?
Thanks,
Howard
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?