Hi,
What is the way to check open price of bar where chart show Buy/SellShort Arrow on chart.
These functions I tried but no luck;
Marketposition, barsSinceEntry, EntryPrice, barsSinceEntry (it skip orders which are entered and exited on same bar through setstoploss)
Awaiting
Check open price of bar where chart show arrow on chart [SOLVED]
- TJ
- Posts: 7745
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2224 times
Re: Check open price of bar where chart show arrow on chart
Just saying "no luck" is not enough.Hi,
What is the way to check open price of bar where chart show Buy/SellShort Arrow on chart.
These functions I tried but no luck;
Marketposition, barsSinceEntry, EntryPrice, barsSinceEntry (it skip orders which are entered and exited on same bar through setstoploss)
Awaiting
Please give detail. How did you "tried"?
Re: Check open price of bar where chart show arrow on chart
Just saying "no luck" is not enough.
Please give detail. How did you tried?
Code: Select all
if Average(C,10) cross above Average(C,20) then Buy next bar o stop;
setstoploss(1);
Print(ElDateToString(d)," ",BarsSinceEntry," ",EntryDate," ",i_MarketPosition," ",marketposition);
Thanks
- TJ
- Posts: 7745
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2224 times
Re: Check open price of bar where chart show arrow on chart
Please post the print out sample.Just saying "no luck" is not enough.
Please give detail. How did you tried?Run it on any market and watch entries which are Entry + Stop out on same bar and see if u can find a way to identify those entries in print command.Code: Select all
if Average(C,10) cross above Average(C,20) then Buy next bar o stop;
setstoploss(1);
Print(ElDateToString(d)," ",BarsSinceEntry," ",EntryDate," ",i_MarketPosition," ",marketposition);
Thanks
I do not test codes that are incomplete.
Re: Check open price of bar where chart show arrow on chart
a) Check attached print log.Please post the print out sample.
I do not test codes that are incomplete.
b) check attached pic 10/16/2009 entry which got stop out on same bar, Print log is unable to identify.
Awaiting
- Attachments
-
- print.txt
- (210.04 KiB) Downloaded 362 times
-
- untitled.PNG
- (105.76 KiB) Downloaded 696 times
- TJ
- Posts: 7745
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2224 times
Re: Check open price of bar where chart show arrow on chart
you have setstoploss(1),
what are you trying to achieve?
what are you trying to achieve?
Re: Check open price of bar where chart show arrow on chart
I used setstoploss(1) to generate more such orders for better understanding of the problem. Actually the setstoploss amount is bit higher.you have setstoploss(1),
what are you trying to achieve?
Awaiting
- TJ
- Posts: 7745
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2224 times
Re: Check open price of bar where chart show arrow on chart
see post #2I used setstoploss(1) to generate more such orders for better understanding of the problem. Actually the setstoploss amount is bit higher.you have setstoploss(1),
what are you trying to achieve?
Awaiting
- TJ
- Posts: 7745
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2224 times
Re: Check open price of bar where chart show arrow on chart
If you want help, you have to provide more detail of project.see post #2This one? What u want me to see in it?Just saying "no luck" is not enough.
Please give detail. How did you "tried"?
I cannot help you with what you have given. Maybe someone else can.
You can help yourself with the FAQ:
viewtopic.php?f=16&t=10811
Re: Check open price of bar where chart show arrow on chart
If you want help, you have to provide FULL detail of project.
I cannot help you with what you have given. Maybe someone else can.
You can check out the FAQ:
viewtopic.php?f=16&t=10811
Its a 100% complete strategy. I would have provided u FULL details of project if my strategy is not 100% complete and some of its portion requires coding, which is not in this case. But still if u think it is incomplete then plz u ignore this inquire, I will wait for some one else to reply on it.
Thanks
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2958 times
Re: Check open price of bar where chart show arrow on chart [SOLVED]
Hello Faraz,
Please try this code:
Please try this code:
Code: Select all
if Average(C,10) cross above Average(C,20) then Buy next bar o stop;
setstoploss(1);
if EntryDate(1)=Date and EntryTime(1)=Time and marketposition=0 then
print(currentbar+maxbarsback);
Re: Check open price of bar where chart show arrow on chart
Hello Faraz,
Please try this code:Code: Select all
if Average(C,10) cross above Average(C,20) then Buy next bar o stop;
setstoploss(1);
if EntryDate(1)=Date and EntryTime(1)=Time and marketposition=0 then
print(currentbar+maxbarsback);
wahoo, it worked, amazing,,,
Thank you.