Calling external DLL from EasyLanguage (Page 2) - EasyLanguage Programming | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > TradeStation > EasyLanguage Programming

Calling external DLL from EasyLanguage
Started:March 26th, 2010 (09:23 PM) by Big Mike Views / Replies:10,587 / 11
Last Reply:August 6th, 2015 (10:03 AM) Attachments:0

Welcome to

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

Thread Tools Search this Thread

Calling external DLL from EasyLanguage

Old August 6th, 2015, 09:27 AM   #11 (permalink)
Trading Apprentice
Trivandrum, Kerala
Futures Experience: Beginner
Platform: Multicharts
Favorite Futures: INR
Posts: 2 since Aug 2015
Thanks: 0 given, 0 received

Error while using parameter

i can possible to call below function from dll and works fine .

DefineDLLFunc: "ConsoleApplication10.dll", int, "getP";

print("sum =",getP());


DefineDLLFunc: "ConsoleApplication10.dll", int, "getP",int ,int;

print("sum =",getP(10,12));


Address: 0x65641407 ( 1701057543 )
Code: 0xC0000005 ( -1073741819 )
Continuable: 0x00000000 ( 0 )
Description: Instraction for adress "0x
ErrorCode: 0xC0000005 ( -1073741819 )
ExceptionType: 0x00000000 ( 0 )
Module: C:\Documents and Settings\All Users\Application Data\TS Support\MultiCharts\StudyServer\Studies\Dlls\Indicators\i_my_indicator.dll
Process: C:\Program Files\TS Support\MultiCharts\MultiCharts.exe
Thread ID: 0x000013F4 ( 5108 )
Time: 27.05.2012 - 01:36:02.768

By def file is

LIBRARY DemoLibrary
DESCRIPTION 'Test DLL for file operations

Reply With Quote

Old August 6th, 2015, 10:03 AM   #12 (permalink)
Elite Member
Frankfurt Germany
Futures Experience: Intermediate
Platform: MetaTrader, MultiCharts
Favorite Futures: Forex, ES, GC, strange synthetic creatures
Posts: 11 since Nov 2014
Thanks: 13 given, 9 received

You can call your function only with *one* signature, function overloading (one function with different signatures) will not work when calling DLL's from "outside". So, you need to decide if your function getP() expects zero parameters (as in your first example) OR two parameters (as in your second example). If you need both calling variants you have to implement two functions with different names.

Post your function declaration ConsoleApplication10::getP()


Reply With Quote

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > TradeStation > EasyLanguage Programming > Calling external DLL from EasyLanguage

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling an Optimization in a Strategy serac NinjaTrader Programming 17 September 2nd, 2015 02:25 PM
Gold - I'm calling the top cpi65 Commodities Futures Trading 65 February 19th, 2012 04:32 AM
External Data Feed market replay software PeterOhlson NinjaTrader 14 July 31st, 2011 04:12 PM
Calling GomiCD into GomiLadder kashter NinjaTrader Programming 2 May 9th, 2011 06:35 PM
External DLL from Ninjatrader ehlaban NinjaTrader Programming 11 June 13th, 2010 11:42 AM

All times are GMT -4. The time now is 07:41 PM.

Copyright © 2016 by 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 2016-10-28 in 0.07 seconds with 19 queries on phoenix via your IP