How can mark a specific Bar in Explore ? For example, I want to put an Arrow or mark a different color at the bar, Low= LLV (L, 50) ? I am trying to write code to explore those stoks when the current Low price approach to a previous Trough, for example, LLV(L, 50). Thanks!
@Laserman you can find many examples in the user guide and on this forum. Also, it is usually a good idea to post whatever you have tried and show the users so they can help you solve your problem.
For your specific question there are many different ways to output an Exploration to show different conditions. An example,
Thank you very much for your help ! The following is my code for this pattern-Explorer and the explorer-result. I hope I can place a mark (an Arrow, or Text, or diffrent color) at the Trough-Bar (MSP) and the Peak-Bar (PKP) on the Chart when I veiw the results from the Explore-Report. Thank you again !
// CK-Date=2020-03-12, Ticker=AAXN
X=100;
MSP=LLV(L,X); // How to place a Arrow Mark , or text mark , or Color mark at this Trough Bar on Chart ?
MSPB=LLVBars(L,X);
PKP=HHV(H,MSPB);// How to place a Mark at this Peak Bar ?
PKPB=HHVBars(H,MSPB);
AddColumn(MSP,"MSP");
AddColumn(MSPB,"MSPB");
AddColumn(PKP,"PKP");
AddColumn(PKPB,"PKPB");
AddColumn(Close, "Close");
UPPA=(PKP-MSP);
DNPA=(PKP-L);
PBRate=DNPA/UPPA;
AddColumn(PBRate, "PBRate");
Filter=Close>40 AND Close< 60 AND PBRate>0.9 AND MSPB>50 AND PKPB>15;
// CK-Date=2020-03-12, Ticker=AAXN
X=100;
MSP=L==LLV(L,X); // How to place a Arrow Mark , or text mark , or Color mark at this Trough Bar on Chart ?
MSPB=LLVBars(L,X);
PKP=HHV(H,MSPB);// How to place a Mark at this Peak Bar ?
PKPB=HHVBars(H,MSPB);
AddColumn(MSP,"MSP");
AddColumn(MSPB,"MSPB");
AddColumn(PKP,"PKP");
AddColumn(PKPB,"PKPB");
AddColumn(Close, "Close");
UPPA=(PKP-MSP);
DNPA=(PKP-L);
PBRate=DNPA/UPPA;
AddColumn(PBRate, "PBRate");
Filter=Close>40 AND Close< 60 AND PBRate>0.9 AND MSPB>50 AND PKPB>15;
//indicator
Plot(C,"Close",colorBlack,styleCandle);
PlotShapes(MSP*shapeUpArrow,colorGreen);
// CK-Date=2020-03-12, Ticker=AAXN
X=100;
AddColumn(X, "X");
MSP=LLV(L,X); // How to place a Arrow Mark , or text mark , or Color mark at this Trough Bar on Chart ?
MSPB=LLVBars(L,X);
PKP=HHV(H,MSPB);// How to place a Mark at this Peak Bar ?
PKPB=HHVBars(H,MSPB);
AddColumn(MSP,"MSP");
AddColumn(MSPB,"MSPB");
AddColumn(PKP,"PKP");
AddColumn(PKPB,"PKPB");
AddColumn(Close, "Close");
UPPA=(PKP-MSP);
DNPA=(PKP-L);
PBRate=DNPA/UPPA;
AddColumn(PBRate, "PBRate");
No results after update my formula. I can locate the MSP-Bar using my code and just need to place an Arrow mark on this specific Trough bar. The logic meaning will change a lot if I change the MSP=llv(L,X) to MSP=L==LLV(L,x). Could you show me your result (or a sample code) with an Arrow mark on charts ? Thank you! very much !
You are not going to see any arrows on the top chart. Is that where your are looking for arrows ?
you will have to add some additional formula to the top chart code inorder to visualize the arrows.
If you click apply a separate chart window will open and display the arrows. What chart is at the very bottom of your image it is cut off , is this the chart that opened when you clicked apply button. if so, check for the arrows.