PureBytes Links
Trading Reference Links
|
Owen,
I've recently been experimenting with entry techniques like the one you
describe.
Here's a code snippet that does something like you want, however, I
believe you are limited to entering at the close of the qualifying bar,
instead of at a particular price.
This snippet assumes that when a bar occurs that satisifies Condition1,
you assign the bar number to a variable called AlertBar. With this
code, the bar the satisfies the test for entry does not have to be the
very next bar after AlertBar. You can control how many bars are tested
for entry after Alertbar by adding something like "if
currentbar-Alertbar <4" to the test for entry.
Regards,
Glenn Crumpley
if Condition 1 and open<=close[currentbar-AlertBar] then begin
sell today on the close;
AlertBar=0;
end;
end;
Owen Davies wrote:
> One of SC's limitations is causing me trouble. For
> some studies, I would like to establish some set-up
> criteria, and then trigger a trade if the entry day
> opens in the right direction. For example, if
> yesterday was a limit move down in an otherwise up
> market, go long on an open above yesterday's close.
> Can't do it.
|