rburkholder / trade-frame

C++ 17 based library (with sample applications) for testing equities, futures, etfs & options based automated trading ideas using DTN IQFeed real time data feed and Interactive Brokers (IB TWS API) for trade execution. Some support for Alpaca & Phemex. Notifications via Telegram [irc: Libra #tradeframe ]
Other
491 stars 156 forks source link

fix build break: build ChartEntryPrice #1

Closed edisonnica closed 7 years ago

rburkholder commented 7 years ago

hmmm, yes, thanx for the pull request. but... first, can I ask what you are using for a edit/build environment? I guess not netbeans :-) If not, I think netbeans builds these files automatically. Therefore, I should be better at checking these make files in after I make mods, so that others, like your self, can run the make from the command line or wherever. Let me do that a little later, but possibly tomorrow, and then you see if the makes match up better.

edisonnica commented 7 years ago

Take your time, no hurry.

I use make to build and nano/gedit to edit the files, I got the netbeans8.2 installed too, but I am a newbie with it.

BTW, I fixed this build break, but I have another one in HedgedBollinger, any hints are appreciated (don't sweat over this, I will figure it out in the end, might be something with my local machine set up badly)

Great project! Thanks for sharing!

In file included from HedgedBollinger.cpp:44:0: HedgedBollinger.h:71:11: error: ‘WinChartView’ in namespace ‘ou::tf’ does not name a type ou::tf::WinChartView m_winChartView; ^ HedgedBollinger.cpp: In member function ‘virtual bool AppHedgedBollinger::OnInit()’: HedgedBollinger.cpp:161:3: error: ‘m_winChartView’ was not declared in this scope m_winChartView = new ou::tf::WinChartView( m_pFrameMain, wxID_ANY, wxDefaultPosition, wxSize(160, 90), wxNO_BORDER ); ^ HedgedBollinger.cpp:161:24: error: expected type-specifier m_winChartView = new ou::tf::WinChartView( m_pFrameMain, wxID_ANY, wxDefaultPosition, wxSize(160, 90), wxNO_BORDER ); ^ HedgedBollinger.cpp: In member function ‘void AppHedgedBollinger::HandleMenuActionStartChart()’: HedgedBollinger.cpp:229:3: error: ‘m_winChartView’ was not declared in this scope m_winChartView->SetChartDataView( m_pStrategy->GetChartDataView() ); ^ HedgedBollinger.cpp: In member function ‘void AppHedgedBollinger::HandleMenuActionStopChart()’: HedgedBollinger.cpp:233:3: error: ‘m_winChartView’ was not declared in this scope m_winChartView->SetChartDataView( nullptr ); ^ nbproject/Makefile-Debug.mk:103: recipe for target 'build/Debug/GNU-Linux/HedgedBollinger.o' failed make[2]: [build/Debug/GNU-Linux/HedgedBollinger.o] Error 1 make[2]: Leaving directory '/home/edi/Edge/trade-frame/HedgedBollinger' nbproject/Makefile-Debug.mk:63: recipe for target '.build-conf' failed make[1]: [.build-conf] Error 2 make[1]: Leaving directory '/home/edi/Edge/trade-frame/HedgedBollinger' nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed make: *** [.build-impl] Error 2

rburkholder commented 7 years ago

Don't waste too much time on HedgedBollinger. I should update my notes. It is broken at this point. I have to back port some fixes due to API changes in those charting files as well as some options calcs.

ComboTrading is where I am focussing most of my time. A bit more to go to tie some loose ends together.

edisonnica commented 7 years ago

Thanks, then, I will start integrating my "brains" into it.

BTW, if you care to know what I will do, I will combine it with my Machine Learning Project, that I abandoned a half a decade ago - http://day-trading-project-athena.blogspot.com/

If you want to keep in touch, ping me at edison.nica@gmail.com

rburkholder commented 7 years ago

https://github.com/rburkholder/trade-frame/tree/master/OptimizeStrategy might be useful to you. I built some Genetic Programming code and used that for testing.

I updated the make files. Uses gcc 6.3.