Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Hmmm, I didn't get this to work. It flips to a wrong value when EntryPrice - MaxPointLoss isn't 0. Or am I overlooking something?
Your other solution, with...
If BarsSinceEntry < MaxBarsBack Then LowestPrice = Lowest(L, BarsSinceEntry);
...worked really perfect, except that it would only be able to keep a lowestprice as long as the MaxBarsBack was set to. And if I tried to set that Max higher, like 1000 or more, the strategy didn't execute.
I tried to work with LowestArray, as such...
HTML Code:
Variables:
Count(0),
LowestPrice(0);
If Close < EntryPrice Then
Count = Count + 1;
Array: LowPricesArray[](EntryPrice);
Array_SetMaxIndex(LowPricesArray, Count);
LowPricesArray[Count] = Close;
LowestPrice = LowestArray(LowPricesArray, Count);
...however, it seems that LowestArray returns a wrong value. Any ideas as to what I'm getting wrong here?
Really appreciate your help!
Can you help answer these questions from other members on NexusFi?
I haven't used Tradestation in some years now but my first question to myself was why would your strategy not execute? Then I remembered I had a similar issue...
I have no idea if it's the same problem and I don't remember why it was but if you set your MaxBarsBack TOO FAR BACK yes you'll have issues like 10,000 or whatever. But if you try at like 1950 it might work.
****UPDATE****
Your code still can't call farther that that 1950 in this case as well! That tripped me up.
*****************
Again I have no idea if this will work for you but hopefully! And test those numbers for sure. Those just came to mind first.