Hi,
I am trying to adopt this strategy and have almost succeeded.
https://www.bigmiketrading.com/multicha ... ategy.html
if (BarStatus(1) = 2) then begin
This is to make the bar go complete when entering the buy/sell order
condition8 = var0 crosses above oversold;
end;
What is lacking is that I would like it the sell/buytocover to execute on the same bar if possible.
I have added [IntrabarOrderGeneration = true]
if CurrentContracts = 3 then begin
Sell ("Exit l1-c3 Target") 1 Contracts Next Bar At (EntryPrice + t1) Limit;
Sell ("Exit l1-c3 Stop") 3 Contracts Next Bar At st1 Stop;
Sell ("Exit l2-c3 Target") 1 Contracts Next Bar At (EntryPrice + t2) Limit;
Sell ("Exit l2-c3 Stop") 1 Contracts Next Bar At st1 Stop;
Sell ("Exit l3-c3 Target") 1 Contracts Next Bar At (EntryPrice + t3) Limit;
Sell ("Exit l3-c3 Stop") 1 Contracts Next Bar At st1 Stop;
Hope someone can help.
BR Stefan
BMT Moneymaker
BMT Moneymaker
- Attachments
-
- BMT_Moneymaker.PNG
- In this case all orders could have been executed on bar 1 or 2 instead of waiting next bar.
- (8.64 KiB) Downloaded 336 times
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: BMT Moneymaker
ps:
[FAQ] How to Post Codes (that people can read)
viewtopic.php?f=16&t=11713
ps: it will help if you post the complete code.
[FAQ] How to Post Codes (that people can read)
viewtopic.php?f=16&t=11713
ps: it will help if you post the complete code.