• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 1:06pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 1:06pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Is There Another Way To Daytrade Besides Forex? 0 replies

Don't daytrade the London/NY session? 15 replies

Why even daytrade? 21 replies

daytrade emini S&P Leverage question 2 replies

Daytrade EA 1 reply

  • Recycle Bin
  • /
  • Reply to Thread
  • Subscribe
  • 6
Attachments: Let's code in C++, Daytrade, & Daydream :)
Exit Attachments
Tags: Let's code in C++, Daytrade, & Daydream :)
Cancel

Let's code in C++, Daytrade, & Daydream :)

  • Last Post
  •  
  • 1 234Page 5 6
  • 1 34Page 5 6
  •  
  • Post #81
  • Quote
  • Dec 30, 2017 6:41am Dec 30, 2017 6:41am
  •  LinkersX
  • | Membership Revoked | Joined Mar 2016 | 115 Posts
Quoting LinkersX
Disliked
{quote} This guy is a prophet.... Universal language... Linkers::X .... Controls EVERYTHING, one language for all trading platforms. Thats Linkers::X Wanna have faster NinjaTrader?, ditch your cr@ppuchino C# back-end for storage and containers, and use Linkers:X and NinjaTrader is good enough for front-end with awesome graphics and charts.... https://www.youtube.com/watch?v=YFD2PPAqNbw
Ignored
... and everything happened because Pyro came in my life 3 years ago, because of his devilish Red Eyes, show eyes, Vörösi

https://www.youtube.com/watch?v=J0vkKpuwbaw
Linkers::X->theNextBigThing; in C++ HFT Event Driven Algorithmic Trading
1
 
  • Post #82
  • Quote
  • Dec 30, 2017 6:52am Dec 30, 2017 6:52am
  •  LinkersX
  • | Membership Revoked | Joined Mar 2016 | 115 Posts
Quoting LinkersX
Disliked
{quote} ... and everything happened because Pyro came in my life 3 years ago, because of his devilish Red Eyes, show eyes, Vörösi https://www.youtube.com/watch?v=J0vkKpuwbaw
Ignored
... and because of my cheerful and jolly character and I'm always thinking out of the box

and I did it my way

https://www.youtube.com/watch?v=3Hqg_oZpK0Y
Linkers::X->theNextBigThing; in C++ HFT Event Driven Algorithmic Trading
1
 
  • Post #83
  • Quote
  • Dec 30, 2017 9:03am Dec 30, 2017 9:03am
  •  Nicholishen
  • Joined Jul 2005 | Status: zzzzzzzzzzzzzzzzzzzzzzzzz zzzzzzzzzz | 1,289 Posts
Quoting LinkersX
Disliked
{quote} ... and because of my cheerful and jolly character and I'm always thinking out of the box and I did it my way https://www.youtube.com/watch?v=3Hqg_oZpK0Y
Ignored
Alright...This thread made a hard turn into weird town. Also the GitHub repo consists of just a single readme and a link to a non-existent website. I'm not sure what kind of weird social experiment this is but I'm out. Unsubscribe.
1
1
  • Post #84
  • Quote
  • Dec 30, 2017 9:06am Dec 30, 2017 9:06am
  •  LinkersX
  • | Membership Revoked | Joined Mar 2016 | 115 Posts
Quoting Nicholishen
Disliked
{quote} Alright...This thread made a hard turn into weird town. Also the GitHub repo consists of just a single readme and a link to a non-existent website. I'm not sure what kind of weird social experiment this is but I'm out. Unsubscribe.
Ignored
Hasta la vista ... Baby ;-((((

when it sez coming out January 2018 it really means that

Last time i checked its still December 30th X->2017;

https://www.youtube.com/watch?v=BacyphpxYSo
Linkers::X->theNextBigThing; in C++ HFT Event Driven Algorithmic Trading
1
 
  • Post #85
  • Quote
  • Jan 2, 2018 3:09am Jan 2, 2018 3:09am
  •  rockit
  • Joined Oct 2013 | Status: Member | 917 Posts
Quoting Nicholishen
Disliked
I CHALLENGE you to write a super-simple indicator that sorts symbols in the market watch by spread and comments the order to the chart. Here is my entry into our little contest... I double-dare you to make one without OOP that's both easier to read (as human) and qualitatively faster!
Ignored
Without OOP:
Inserted Code
//|                                                           ss.mq4 |
//|                                                           rockit |
#property strict
#property indicator_chart_window
int OnInit()
{
 EventSetMillisecondTimer(250);
 return(INIT_SUCCEEDED);
}
int OnCalculate(const int rates_total, const int prev_calculated, const datetime &time[], const double &open[], const double &high[], const double &low[], const double &close[], const long &tick_volume[], const long &volume[], const int &spread[])
{
 return(rates_total);
}
void OnTimer()
{
 ulong t=GetMicrosecondCount();
 int total = SymbolsTotal(true);
 int mw[][2]; // to hold spreads
 ArrayResize(mw, total);
 for(int i=0; i<total; i++) {
  string symbol=SymbolName(i,true);
  mw[i][0]=int((SymbolInfoDouble(symbol,SYMBOL_ASK)-SymbolInfoDouble(symbol,SYMBOL_BID))/SymbolInfoDouble(symbol,SYMBOL_POINT));
  mw[i][1]=i; // initial order
 }
 ArraySort(mw,WHOLE_ARRAY,0,MODE_ASCEND); // sort array by spread
 string ss="";
 for(int i=0; i<total; i++) {
  string symbol=SymbolName(mw[i][1],true);
  ss+=symbol+" = "+mw[i][0]+"\r\n";
 }
 t=GetMicrosecondCount()-t;
 Comment("time "+t+" µs\r\n"+ss);
}
void OnDeinit(const int reason)
{
 EventKillTimer();
 Comment("");
}
..
 
3
  • Post #86
  • Quote
  • Jan 2, 2018 12:23pm Jan 2, 2018 12:23pm
  •  MXT
  • Joined Dec 2005 | Status: Member | 2,851 Posts
hey Linkers , keep up the good job and thread

hope you'll be back soon
 
 
  • Post #87
  • Quote
  • Jan 2, 2018 1:41pm Jan 2, 2018 1:41pm
  •  Trader-Waldo
  • | Membership Revoked | Joined Sep 2017 | 422 Posts
why is he suspended?
NO MATTER THE SITUATION,NEVER LET YOUR EMOTIONS OVERPOWER YOUR INTELLIGENCE
 
 
  • Post #88
  • Quote
  • Edited 6:55pm Jan 2, 2018 2:36pm | Edited 6:55pm
  •  Nicholishen
  • Joined Jul 2005 | Status: zzzzzzzzzzzzzzzzzzzzzzzzz zzzzzzzzzz | 1,289 Posts
Quoting rockit
Disliked
{quote} Without OOP: //| ss.mq4 | //| rockit | #property strict #property indicator_chart_window int OnInit() { EventSetMillisecondTimer(250); return(INIT_SUCCEEDED); } int OnCalculate(const int rates_total, const int prev_calculated, const datetime &time[], const double &open[], const double &high[], const double &low[], const double &close[], const long &tick_volume[], const long &volume[], const int &spread[]) { return(rates_total); } void OnTimer() { ulong t=GetMicrosecondCount(); int total = SymbolsTotal(true); int mw[][2]; // to hold spreads...
Ignored
Clever. I quickly saw what you did here since I also used to find clever hacks with MQL MDarrays before build 600, but I would argue that this would be more confusing to a newer programmer attempting to implement this into their codebase, hence, the human readability/code reusability aspect...

Since you stepped up to the first challenge, let's extend this to a more useful real world scenario. Let's extend both of our examples to make a secondary sort by ATR... So first by spread (ascending), then by ATR (descending).
Inserted Code
class CSpreadAtr : public CSpread
{
public:
   CSpreadAtr(string symbol):CSpread(symbol){}
   virtual int Compare(const CObject *node,const int mode=0)const override
   {
      int res = CSpread::Compare(node,mode);
      if(res != 0)
         return res;
      const CSpreadAtr *other =node;
      if(this.atr() > other.atr()) return -1;
      if(this.atr() < other.atr()) return 1;
      return 0;
   }
   virtual string ToString() override
   {
      return CSpread::ToString()+" :: ATR = "+DoubleToString(atr(),1);
   }
   double atr()const{return iATR(m_symbol,_Period,14,0) / SymbolInfoDouble(m_symbol,SYMBOL_POINT);}
};
 
 
  • Post #89
  • Quote
  • Edited 4:03pm Jan 2, 2018 3:08pm | Edited 4:03pm
  •  Nicholishen
  • Joined Jul 2005 | Status: zzzzzzzzzzzzzzzzzzzzzzzzz zzzzzzzzzz | 1,289 Posts
Quoting Trader-Waldo
Disliked
why is he suspended?
Ignored
If I had to guess I'd say it's probably from spamming multiple threads with youtube vids. Then there's also the issue with his/her story of being an expert software engineer of 30+ years, but this person's github account has only 19 commits to one single readme doc and nothing else.
 
 
  • Post #90
  • Quote
  • Jan 2, 2018 4:19pm Jan 2, 2018 4:19pm
  •  alphaomega
  • Joined Aug 2010 | Status: Stare Into the Lights My Pretties! | 774 Posts
Quoting rockit
Disliked
{quote} Without OOP: //| ss.mq4 | //| rockit | #property strict #property indicator_chart_window int OnInit() { EventSetMillisecondTimer(250); return(INIT_SUCCEEDED); } int OnCalculate(const int rates_total, const int prev_calculated, const datetime &time[], const double &open[], const double &high[], const double &low[], const double &close[], const long &tick_volume[], const long &volume[], const int &spread[]) { return(rates_total); } void OnTimer() { ulong t=GetMicrosecondCount(); int total = SymbolsTotal(true); int mw[][2]; // to hold spreads...
Ignored
Great job!

Simple and elegant solution.

This perfectly proves my point regarding OOP.

And a small modification from me, to make this code even more efficient:
Inserted Code
//|                                                           ss.mq4 |
//|                                                           rockit |
#property strict
#property indicator_chart_window
int OnInit()
{
 EventSetMillisecondTimer(250);
 return(INIT_SUCCEEDED);
}
int OnCalculate(const int rates_total, const int prev_calculated, const datetime &time[], const double &open[], const double &high[], const double &low[], const double &close[], const long &tick_volume[], const long &volume[], const int &spread[])
{
 return(rates_total);
}
void OnTimer()
{
 ulong t=GetMicrosecondCount();
 int total = SymbolsTotal(true);
 int mw[][2]; // to hold spreads
 ArrayResize(mw, total);
 for(int i=0; i<total; i++) {
  string symbol=SymbolName(i,true);
  mw[i][0]=int(MarketInfo(symbol,MODE_SPREAD));
  mw[i][1]=i; // initial order
 }
 ArraySort(mw,WHOLE_ARRAY,0,MODE_ASCEND); // sort array by spread
 string ss="";
 for(int i=0; i<total; i++) {
  string symbol=SymbolName(mw[i][1],true);
  ss+=symbol+" = "+(string)mw[i][0]+"\r\n";
 }
 t=GetMicrosecondCount()-t;
 Comment("time "+(string)t+" µs\r\n"+ss);
}
void OnDeinit(const int reason)
{
 EventKillTimer();
 Comment("");
}
 
 
  • Post #91
  • Quote
  • Jan 2, 2018 5:26pm Jan 2, 2018 5:26pm
  •  Nicholishen
  • Joined Jul 2005 | Status: zzzzzzzzzzzzzzzzzzzzzzzzz zzzzzzzzzz | 1,289 Posts
Quoting heyMickey
Disliked
{quote} but what this is for?? is this C++?
Ignored
Oh hey, linkers throwaway account... When you gonna put up this library?
 
 
  • Post #92
  • Quote
  • Jan 2, 2018 6:11pm Jan 2, 2018 6:11pm
  •  Nicholishen
  • Joined Jul 2005 | Status: zzzzzzzzzzzzzzzzzzzzzzzzz zzzzzzzzzz | 1,289 Posts
Quoting alphaomega
Disliked
{quote} Great job! Simple and elegant solution. This perfectly proves my point regarding OOP. And a small modification from me, to make this code even more efficient: //| ss.mq4 | //| rockit | #property strict #property indicator_chart_window int OnInit() { EventSetMillisecondTimer(250); return(INIT_SUCCEEDED); } int OnCalculate(const int rates_total, const int prev_calculated, const datetime &time[], const double &open[], const double &high[], const double &low[], const double &close[], const long &tick_volume[], const long &volume[], const int...
Ignored
This proves that for this particular simple challenge there is a hack-a-round, but this does not prove to be more readable and reusable, which was your point regarding procedural vs OOP. Can you produce a simple solution for part 2 of the challenge as I have above (https://www.forexfactory.com/showthread.php?p=10634330#post10634330)?
 
 
  • Post #93
  • Quote
  • Jan 2, 2018 6:27pm Jan 2, 2018 6:27pm
  •  Nicholishen
  • Joined Jul 2005 | Status: zzzzzzzzzzzzzzzzzzzzzzzzz zzzzzzzzzz | 1,289 Posts
Quoting heyMickey
Disliked
{quote} i Think #LinkersX already answered your question ! # this code will compile and execute on MQL4, 5 NinjaScript, cAlgo, ACSIL SierraChart #include<LinkersX.mqh> struct spread1 { double spread; xString symbol; }; xSort<spread1> sorted1; xQueue<sorted1> sortedQueue; sorted1.add(spread1); // add spread to sorted list //autosort goes on during every insert sorted1.add(spread1); // add sanother spred1 struct to tlist sorted1.shiftRight(1); // shift right sort container sortedQueue.push(sorted1); // push sorted1 into the queue // Linkers::X->andThatsIt;...
Ignored
We know it's you linkers... you aren't fooling anyone. Where's your "damn library" because it certainly isn't on your github...
 
 
  • Post #94
  • Quote
  • Jan 2, 2018 7:00pm Jan 2, 2018 7:00pm
  •  alphaomega
  • Joined Aug 2010 | Status: Stare Into the Lights My Pretties! | 774 Posts
Quoting Nicholishen
Disliked
{quote} This proves that for this particular simple challenge there is a hack-a-round, but this does not prove to be more readable and reusable, which was your point regarding procedural vs OOP. Can you produce a simple solution for part 2 of the challenge as I have above (https://www.forexfactory.com/showthread.php?p=10634330#post10634330)?
Ignored
My point is that OOP is NOT the holy grail of programing. There are many ways to achieve certain results. There are many angles. It's counterproductive to be stuck in one way of thinking.

I'm not against oop. I also use it.
---------------------------------------------
Let's take the challenge "one" level higher - let's build a trading robot with Brainfuck (https://en.wikipedia.org/wiki/Brainfuck)
 
 
  • Post #95
  • Quote
  • Jan 3, 2018 1:14am Jan 3, 2018 1:14am
  •  Waiter
  • | Membership Revoked | Joined Apr 2015 | 107 Posts
Dow do we know that you are not BS-ing about LinkersX?
 
 
  • Post #96
  • Quote
  • Jan 3, 2018 1:15am Jan 3, 2018 1:15am
  •  Waiter
  • | Membership Revoked | Joined Apr 2015 | 107 Posts
Quoting Waiter
Disliked
Dow do we know that you are not BS-ing about LinkersX?
Ignored
another Mofo trolling FF, where is LinkersX to answer our questins
 
 
  • Post #97
  • Quote
  • Jan 3, 2018 1:20am Jan 3, 2018 1:20am
  •  Waiter
  • | Membership Revoked | Joined Apr 2015 | 107 Posts
Quoting alphaomega
Disliked
{quote} My point is that OOP is NOT the holy grail of programing. There are many ways to achieve certain results. There are many angles. It's counterproductive to be stuck in one way of thinking. I'm not against oop. I also use it. --------------------------------------------- Let's take the challenge "one" level higher - let's build a trading robot with Brainfuck (https://en.wikipedia.org/wiki/Brainfuck)
Ignored

What a hell you're fantasizing about
 
 
  • Post #98
  • Quote
  • Jan 3, 2018 1:22am Jan 3, 2018 1:22am
  •  Waiter
  • | Membership Revoked | Joined Apr 2015 | 107 Posts
Quoting Trader-Waldo
Disliked
why is he suspended?
Ignored
I don"t trust this guy. He claims impossible, to connect multiple platforms in one language LOL
In his dreams only. he blows too much steam, arrogant guy
 
 
  • Post #99
  • Quote
  • Edited 5:51am Jan 3, 2018 4:07am | Edited 5:51am
  •  braintheboss
  • Joined Nov 2012 | Status: Coder | 8,520 Posts
Quoting Waiter
Disliked
{quote} I don"t trust this guy. He claims impossible, to connect multiple platforms in one language LOL In his dreams only. he blows too much steam, arrogant guy
Ignored
All that platforms have similar syntax then its possible wrap differences but its irrelevant when people want have a profitable EA. If you have one in a win console you will use even you only see text. Anyway MT5 is more superior after last improvements. And now will support extern compilers ( C, C++, R nd Python). Only with last language they can get a lot of new coders...
Try don't lose pants never...
 
 
  • Post #100
  • Quote
  • Jan 3, 2018 4:21am Jan 3, 2018 4:21am
  •  Waiter
  • | Membership Revoked | Joined Apr 2015 | 107 Posts
Quoting braintheboss
Disliked
{quote} All that platforms have similar ayntax then its possible wrap differences but its irrelevant when people want have a profitable EA. If you have one in a win console you will use even you only see text. Anyway MT5 is more superior after last improvements. And now will support extern compilers ( C, C++, R nd Python). Only with last language they can get a lot of new coders...
Ignored
what a cool aid are you drinking ??? MQL5 LOL
 
 
  • Recycle Bin
  • /
  • Let's code in C++, Daytrade, & Daydream :)
  • Reply to Thread
    • 1 234Page 5 6
    • 1 34Page 5 6
0 traders viewing now
  • More
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023