- Joined
- 24 October 2005
- Posts
- 1,302
- Reactions
- 834
Hey all
I'm for a code for a trailing stop which gives a sell signal for the lowest low in the last x days. I cant seem to find anything on the net about this. Does anyone have anything out there?
Thanks,
Sammy
I could probably make you one.
Do you want it to be a % of the lowest low, move, or just the lowest low x days ago and stay there?
I need it to be the lowest low within a certain time frame, for e.g the lowest low in the last 13 days. Thank you for your help beamstas. How did you get good at AFL? I bought Brandy's book of quantitative analysis, but it is beyond my level.
Sammy
Calculating Start of Previous Month
Hello All,
I'm working in the Weekly timeframe and would like to calculate how many weekly bars have past since the START of the PREVIOUS MONTH.
I can easily find out how many bars have occured since the Start of the Current Month using:
BarsStartCurrentMth = BarsSince(Month()!=Ref(Month(),-1)) + 1 ;
However, I'm struggling to find how many bars have occured since the Start of the Previous Month. What makes this difficult for me is that not all Months contain 4 weeks.
The only possible idea I have is to create a loop which contains a variable (x) which increments by 1 each time a new Month begins. Outside of this loop I could then use BarsSince() function to determine how many bars have occurred since (x-1) occurred. However, I've yet to test this idea so not currently sure whether this is possible.
Regardless of this, Is there an easier way to solve this problem?
Many Thanks in advance....
Hiya,
Sorry for the newbie question. I have been trying to get the SPI futures contract working with Amibroker and an Interactive Brokers feed.
The connection to IB is working and I can download data for the YM, ES, NQ, etc. However when I use the symbol APM9-SNFE-FUT (for the June contract) I get the error "Symbol invalid".
Anyone have any ideas what the problem might be.
Many thanks.
TiP2012
I'm working in the Weekly timeframe and would like to calculate how many weekly bars have past since the START of the PREVIOUS MONTH.
You know what the bar count is on the last charted bar:
LastValue(Cum(1));
You know how to find the find the start of the month using Month()!=Ref(Month(),-1), so use the ValueWhen() function to find the counter of the bar on the second last time this condition was true:
ValueWhen(2,Month()!=Ref(Month(),-1),Cum(1));
The difference between them is the number of elapsed bars?
Hope this helps.
wabbit
P.S. I haven't played with AmiBroker for a while, so interpret the codes as you need to!
Try apm9-snfe-fut-aud
CanOz
Hey all,
A couple of quick queries about amibroker, im looking to purchase it in the coming weeks, on their site it says an ultimate pack pro is available for $409, which says it includes lifetime licenses for the AFL wizard and Amiquote, just confirming this means that i won't have to pay a yearly renewal for them ever?
Would the Howard Bandy book - Introduction to AmiBroker, be the most appropriate learning resource? How long would it take for an average computer literate person to become familiar with using amibroker? p.s. do you still need amiquote if you receive a data feed from data providers, such as esignal?
Thanks,
Shaun.
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?