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)
I'm new to developing + backtesting of trading systems and I'm not an expert in programming.
I was wondering if anyone recommends learning C++ or Easy language.
At the moment I'm considering C++ as it is being use for NT, which I can use for free to create and backtest strategies.
Any comments are welcome.
Regards,
Dennis
Can you help answer these questions from other members on NexusFi?
I used to be a programmer in C++ (about 15 years ago).
Over the past two months I have relearnt my C++ skills to develop strategies in NT which uses C## (pretty similiar to C++). However I got really frustrated with NT with "errors" in backtesting - introduced primarily through the way it handled OHLC information.
Consequently I downloaded MC and taught myself EasyLanguage. This is pretty simple and quite powerful. Check out Mike's video on NT vs MC where demonstrates what is required to create a simple backtesting strategy in both NT and MC. It will probably make your mind up for you...
My two cents is that it is not about the programming language but the backtesting tool.
If you are new to both, easy language is, by far, easier to get started with. If you are interested in super cool indicators, then C# will be better long term, but for doing simple back tests of simple ideas, EL will get the job done.
Remember cool and complex does not mean profitable
If you want my opinion - I prefer EasyLanguage, and I am a programmer at heart and know many languages and programmed in C# NinjaScript for a long time. EasyLanguage is better for me personally, for what I want to accomplish, which is to make money.
CONDITION 1 (UP):
when the previus bar (instrument ES, for instance) closes in high (GREEN) or doji and the next bar opens with a gap (at least 1 tick above the last close bar), the strategy place a Bracket Order:
- buy limit order (first tick of the next bar) +
- profit target (7 ticks) +
- stop loss (7 ticks), trailing stop (1 tick)
CONDITION 2 (DOWN):
when the previus bar (instrument ES, for instance) closes in down (RED) or doji and the next bar opens with a gap (at least 1 tick below the last close bar), the strategy place a Bracket Order:
- a sell limit order (first tick of the next bar) +
- profit target (7 ticks) +
- stop loss (7 ticks), trailing stop (1tick)
Do you know if it is it possible to code this strategy using EasyLanguage?
If so, could you write this code, please?
I don't know nothing about how to programming.
Vars : boolean isGap(false);
Vars:TickSize(PriceScale/MinMove);
if Open[0]>= (Close[1] + TickSize*PointValue ) then isGap=true;
// here ur limit entry order is little tricky. Long Limit orders can be specified if market is trading above ur limit price . Here i would use another way. It may have some slippage.
If (condition1 or Condition2 ) and isGap=true then
begin
Buy 1 contract next bar at open; { Using market order instead of limit orders }
end;
If market0osition>0 then begin
SetProfitTarget(profitticks*TickSize*PointValue);
SetStoploss(Stopticks*TickSize*PointValue);
SetTrailingStoploss(TrStopticks*TickSize*PointValue);
end;