StrToBool question - EasyLanguage Programming | futures io social day trading
futures io futures trading


StrToBool question
Updated: Views / Replies:193 / 5
Created: by benracz Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • 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.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

StrToBool question

  #1 (permalink)
Miami, USA
 
Trading Experience: Advanced
Platform: MultiCharts
Favorite Futures: Forex
 
Posts: 11 since May 2017
Thanks: 1 given, 7 received

StrToBool question

Hi Everyone,

I'm in the process of developing a web-based monitoring system for my trading and MultiCharts/EL strategies, and I find myself thinking: under certain circumstances it could it be cool to be able to specify some rules from a web interface, and execute them with MultiCharts/in EL, using only a web GUI.

The problem I'm stuck with - and this is probably impossible to solve, but I thought I'd post here and ask anyway -, is how do I turn a "string" input (saved to a file, or taken from database using sharedvar server, or any other solution) into a proper boolean that would then in turn convert the condition from a string to a 1 to a 0 depending on whether it's true or not. So I could just go on the web, take a "Rule" text window and put "rsi(close,50) > 20" or something, hit save, that would go to a file or database, find its way into a variable in MultiCharts and the strategy would get backtested/executed on MultiCharts without having to recompile code (to which I have found no good "remote" solution yet).

I find myself craving for either a command-line compiler or an StrToBool function or something and wondering if anyone has any other solution to this.

The closest I've gotten with my brainstorm was to run another app to backtest in, and save the backtest results (1 or 0 for every bar) into a file and then using that variable - since it's a number already. But the workaround is messy.

Does anyone happen to have any solution to this that I'm not thinking of?

-Ben

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.

 
  #3 (permalink)
 Vendor: www.abctradinggroup.com 
Hamburg Germany
 
Trading Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 2,055 since Apr 2013
Thanks: 360 given, 1,299 received


Ben,

you could write your own StrToBool function, pass a string to it, evaluate it and return a Boolean.

Regards,

ABCTG

Reply With Quote
The following user says Thank You to ABCTG for this post:
 
  #4 (permalink)
Miami, USA
 
Trading Experience: Advanced
Platform: MultiCharts
Favorite Futures: Forex
 
Posts: 11 since May 2017
Thanks: 1 given, 7 received

Hi ABC,

Thank you for the response.

Maybe it's just me being slow, but how would you "evaluate" whether the "string" containing a trading rule (for example "close > rsi(close, 21)") is "true" or "false"? It's just a string, as far as the compiler is concerned!

This is where I'm stuck at. It might be just too simple for me to see it, been working long hours lately haha

-Ben

Reply With Quote
 
  #5 (permalink)
 Vendor: www.abctradinggroup.com 
Hamburg Germany
 
Trading Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 2,055 since Apr 2013
Thanks: 360 given, 1,299 received

Ben,

this will only work if you know what you are looking for i.e. the function would have to be aware of the possible strings in advance and evaluate what ever you pass based on that.
You might be able to break down the string in multiple parts and have the function combine it, though.

Regards,

ABCTG


benracz View Post
Hi ABC,

Thank you for the response.

Maybe it's just me being slow, but how would you "evaluate" whether the "string" containing a trading rule (for example "close > rsi(close, 21)") is "true" or "false"? It's just a string, as far as the compiler is concerned!

This is where I'm stuck at. It might be just too simple for me to see it, been working long hours lately haha

-Ben


Reply With Quote
 
  #6 (permalink)
Miami, USA
 
Trading Experience: Advanced
Platform: MultiCharts
Favorite Futures: Forex
 
Posts: 11 since May 2017
Thanks: 1 given, 7 received

Yeah - that was kind of the point. I could as well generate a database of signals with 1's and 0's in advance and bool from there. But it kind of negates the whole point of doing it. Which is why I was looking for an actual, proper solution/ideas. Thanks for the brainstorm though.

Reply With Quote

Reply



futures io > > > > > StrToBool question

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

futures io is celebrating 10-years w/ over $18,000 in prizes!

Right now
 

Thanks for everything -- $250 in Amazon Gift Cards ready to give away

Right now
 

Journal in July -- over $2,500 in prizes w/NinjaTrader

July
     


Tags
abc, ai, backtested, code, combine, database, dow, easylanguage, es, multicharts, neoticker, rsi, signals, strategies, strategy, tradestation, trading, variable

All times are GMT -4. The time now is 01:14 AM. (this page content is cached, log in for real-time version)

Copyright © 2019 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432 WhatsApp Business, 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