Trade setups migrating from amibroker to ninjatrader - NinjaTrader Programming | futures io social trading
futures io futures trading


Trade setups migrating from amibroker to ninjatrader
Updated: Views / Replies:186 / 1
Created: by sherbaaz Attachments:0

Welcome to futures io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.


You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Reply
 
Thread Tools Search this Thread
 

Trade setups migrating from amibroker to ninjatrader

  #1 (permalink)
Trading Apprentice
ahmedabad/india
 
Futures Experience: Intermediate
Platform: tradeguider
Favorite Futures: stock futures
 
Posts: 1 since Feb 2013
Thanks: 0 given, 0 received

Trade setups migrating from amibroker to ninjatrader

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
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.


Reply



futures io > > > > > Trade setups migrating from amibroker to ninjatrader

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

FIO Journal Challenge featuring NinjaTrader ($2,000+ of prizes)

May

An overview of volumetric analytical tools w/Sergey Sokolov @ PTMC

Elite only

John Hoagland (TBA)

Elite only

FuturesTrader71 Extended Ask Me Anything (AMA)

Elite only

Pete @ Jigsaw Trading (TBA)

Elite only

John @ No BS Day Trading (TBA)

Elite only

An Afternoon with FIO member Softsoap (being rescheduled)

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
AmiBroker code for ninjatrader curleta NinjaTrader Programming 1 May 2nd, 2015 09:19 PM
Help with Migrating Ninjatrader 7 & Sierra Chart to new computer issues. sandptrader Tech Support 11 January 13th, 2015 02:43 PM
Is it profitable to trade the standard TS123 setups tradereight MTPredictor 3 October 26th, 2012 02:31 PM
how does one stay focused while watching charts waiting for trade setups? trendisyourfriend The Elite Circle 7 July 16th, 2012 09:38 AM
[NinjaTrader]    NinjaTrader and Amibroker excite Platforms and Indicators 3 June 10th, 2011 12:43 AM


All times are GMT -4. The time now is 01:36 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-05-29 in 0.05 seconds with 19 queries on phoenix via your IP 23.20.157.174