Welcome to the Traders Laboratory Forums.
Coding Forum Collaborate, receive help, or discuss coding related issues.

Like Tree1Likes

Reply
Old 09-26-2011, 10:05 PM   #25

Join Date: Mar 2009
Posts: 27
Ignore this user

Thanks: 8
Thanked 5 Times in 5 Posts

Re: Convert MT4 Indicator into Tradestation Eld?

Quote:
Originally Posted by Tams »
if you have tried, but are unwilling to share your "efforts",
what chances are someone would like to collaborate in this ?
i understand what you meant and i'd like to share anything i have. but i really have nothing.
i meant was i just tried to write some pseudo code to know if it's possible by myself.
r4bb1t is offline  
Reply With Quote
Old 09-27-2011, 12:13 PM   #26

Tradewinds's Avatar

Join Date: Nov 2008
Location: Northeast U.S.
Posts: 891
Ignore this user

Thanks: 373
Thanked 231 Times in 164 Posts
Blog Entries: 6

Re: Convert MT4 Indicator into Tradestation Eld?

Quote:
Originally Posted by Tradewinds »
Here is some really simple code that I create:
That code doesn't work. This does:

Time On Chart - TradeStation at Traders Laboratory
__________________
Precise, "dialed-in", targeted combination setups, like opening a combination lock; is the experience you should be having while trading. Dial left, right, left, . . . click - the lock opens.
Tradewinds is offline  
Reply With Quote
Old 10-14-2011, 12:04 PM   #27

Join Date: Oct 2011
Posts: 1
Ignore this user

Thanks: 0
Thanked 0 Times in 0 Posts

Re: Convert MT4 Indicator into Tradestation Eld?

I have an ATR code that i'd like converted to Tradestations EasyLanguage if someone has a chance?

2011-10-14_0902 - xpete911's library


Code:
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 White
#property indicator_color2 Red

extern int Length = 15;
extern int ATRperiod = 2;
extern double Kv = 4.0;
extern int Shift = 1;
double g_ibuf_96[];
double g_ibuf_100[];
double g_ibuf_104[];
double g_ibuf_108[];
double g_ibuf_112[];

int init() {
   SetIndexStyle(0, DRAW_LINE, STYLE_SOLID, 2);
   SetIndexStyle(1, DRAW_LINE, STYLE_SOLID, 2);
   IndicatorBuffers(5);
   SetIndexBuffer(0, g_ibuf_96);
   SetIndexBuffer(1, g_ibuf_100);
   SetIndexBuffer(2, g_ibuf_104);
   SetIndexBuffer(3, g_ibuf_108);
   SetIndexBuffer(4, g_ibuf_112);
   string ls_0 = "ATRStops(" + Length + ")";
   IndicatorShortName(ls_0);
   SetIndexLabel(0, "Up");
   SetIndexLabel(1, "Dn");
   SetIndexDrawBegin(0, Length);
   SetIndexDrawBegin(1, Length);
   return (0);
}

int start() {
   int li_4;
   int l_ind_counted_8 = IndicatorCounted();
   if (l_ind_counted_8 > 0) li_4 = Bars - l_ind_counted_8;
   if (l_ind_counted_8 < 0) return (0);
   if (l_ind_counted_8 == 0) li_4 = Bars - Length - 1;
   for (int li_0 = li_4; li_0 >= 0; li_0--) {
      g_ibuf_104[li_0] = High[iHighest(NULL, 0, MODE_HIGH, Length, li_0 + Shift)] - Kv * iATR(NULL, 0, ATRperiod, li_0 + Shift);
      g_ibuf_108[li_0] = Low[iLowest(NULL, 0, MODE_LOW, Length, li_0 + Shift)] + Kv * iATR(NULL, 0, ATRperiod, li_0 + Shift);
      g_ibuf_112[li_0] = g_ibuf_112[li_0 + 1];
      if (Close[li_0] > g_ibuf_108[li_0 + 1]) g_ibuf_112[li_0] = 1;
      if (Close[li_0] < g_ibuf_104[li_0 + 1]) g_ibuf_112[li_0] = -1;
      if (g_ibuf_112[li_0] > 0.0) {
         if (g_ibuf_104[li_0] < g_ibuf_104[li_0 + 1]) g_ibuf_104[li_0] = g_ibuf_104[li_0 + 1];
         g_ibuf_96[li_0] = g_ibuf_104[li_0];
         g_ibuf_100[li_0] = EMPTY_VALUE;
      }
      if (g_ibuf_112[li_0] < 0.0) {
         if (g_ibuf_108[li_0] > g_ibuf_108[li_0 + 1]) g_ibuf_108[li_0] = g_ibuf_108[li_0 + 1];
         g_ibuf_96[li_0] = EMPTY_VALUE;
         g_ibuf_100[li_0] = g_ibuf_108[li_0];
      }
   }
   return (0);
}
xpete is offline  
Reply With Quote

Reply

Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Any Tradestation Market Profile Indicator? agabr Coding Forum 6 08-12-2011 05:23 PM
Bid-Ask Pressure Indicator for Tradestation Soultrader Trading Indicators 81 08-18-2009 03:29 PM
Alchemy TradeStation Indicator Package captjoe Coding Forum 1 11-29-2008 08:05 PM
Colby Indicator For Tradestation slableak Brokers and Data Feeds 12 11-29-2008 10:23 AM
BRICKS Indicator for Tradestation Soultrader Trading Indicators 8 02-23-2008 09:10 PM

All times are GMT -4. The time now is 12:36 PM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.