NexusFi: Find Your Edge


Home Menu

 





Trade setups migrating from amibroker to ninjatrader


Discussion in NinjaTrader

Updated
    1. trending_up 1,103 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread

Trade setups migrating from amibroker to ninjatrader

  #1 (permalink)
sherbaaz
ahmedabad/india
 
Posts: 1 since Feb 2013
Thanks Given: 1
Thanks Received: 0

Hi,

I am full time trader migrating from amibroker to ninjatrader. I have specific trade setups in amibroker which i want to use in N7 as well. But I dont have any knowledge of NT coding.

I request coders to please help me with the codes in NT.

following are the amibroker codes. I am looking for buy/sell signals above/below candles.

regds,s

 
Code
extrA = C < O;
extrB = Ref(C, -1) > Ref(O, -1); // -- I am assuming that you want yesterday's close to be > yesterday's open
barRange = H-L;
avgRange50 = MA(barRange, 50);
extrC = Ref(barRange, -1) > (2* Ref(avgRange50, -1));
body = Abs(C - O);//this is common condition
smallBody = (body >= (0.5 * barRange)) AND (body <= (0.85 * barRange));
extrD = Ref(smallBody, -1);
Cent = abs(HIGH + LOW) / 2;

extrA1 = C>O;
extrB1 = Ref(C, -1) < Ref(O, -1);
extrC1 = Ref(barRange, -1) > (2* Ref(avgRange50, -1));
extrD1 = Ref(smallBody, -1);

buy = extrA AND extrB AND extrC AND extrD;
Sell = extrA1 AND extrB1 AND extrC1 AND extrD1;
PlotShapes(IIf(Buy,shapeSmallCircle,shapeNone),colorwhite, 0,Cent, Offset= 0);
PlotShapes(IIf(sell,shapeSmallCircle,shapeNone),colorwhite, 0,Cent, Offset= 0);
/////////////////////////////////////////////////////////////////////////////////////////////////////////////

trA = C < O;
trB = (H - O) >= (3.25 * (O - C));
trC = (C - L) <= (0.35 * (H - L));
barRange = H-L;
trD = barRange >= (1.1 * MA(barRange, 50));

trA1 = C>O;
trB1 = (O-L)>=(3.25*(C-O));
trC1 = (H-C)<=(0.35*(H-L));
trD1 = barRange >= (1.1 * MA(barRange, 50));
Buy1 = trA AND trB AND trC AND trD;
Sell1 = trA1 AND trB1 AND trC1 AND trD1;
PlotShapes(IIf(Buy1,shapeSmallCircle,shapeNone),colorwhite, 0,Cent, Offset= 0);
PlotShapes(IIf(sell1,shapeSmallCircle,shapeNone),colorwhite, 0,Cent, Offset= 0);
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
orA = C < O;
orB = H > Ref(H, -1);
orC = L < Ref(L, -1);
barRange = H-L;
orD = barRange >= (1.25 * MA(barRange, 50));
orE = C < Ref(L, -1);
orF = Ref(C,-1)>Ref(O,-1);

orA1 = C > O;
orB1 = H > Ref(H, -1);
orC1 = L < Ref(L, -1);
barRange3 = H-L;
orD1 = barRange3 >= (1.25 * MA(barRange3, 50));
orE1 = C > Ref(H, -1);
orF1 = Ref(C,-1)<Ref(O,-1);

Buy2= orA AND orB AND orC AND orD AND orE AND orF;
Sell2= orA1 AND orB1 AND orC1 AND orD1 AND orE1 AND orF1;
PlotShapes(IIf(Buy2,shapeSmallCircle,shapeNone),colorwhite, 0,Cent, Offset= 0);
PlotShapes(IIf(Sell2,shapeSmallCircle,shapeNone),colorwhite, 0,Cent, Offset= 0);
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
barRange4 = H-L;
djA = barRange4 <= (0.65 * MA(barRange4, 50));
body2 = Abs(C - O);
smallBody2 = (body2 <= (0.1 * barRange4)); 
djB = smallBody2;
Buy3= djA AND djB;
PlotShapes(IIf(Buy3,shapeSmallCircle,shapeNone),colorwhite, 0,Cent, Offset= 0);
///////////////////////////////////////////////////////////////////////////////////////////////////////////////

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
Exit Strategy
NinjaTrader
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
NexusFi Journal Challenge - May 2024
Feedback and Announcements
Trade idea based off three indicators.
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
38 thanks
Just another trading journal: PA, Wyckoff & Trends
30 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
21 thanks




Last Updated on September 7, 2016


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts