Static Variable from Pre-defined variable - MetaQuotes MetaTrader MQL Programming | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > MetaTrader > MetaQuotes MetaTrader MQL Programming

Static Variable from Pre-defined variable
Started:April 15th, 2015 (09:15 PM) by jrobinson3002 Views / Replies:258 / 1
Last Reply:April 15th, 2015 (09:15 PM) 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

Static Variable from Pre-defined variable

Old April 15th, 2015, 09:15 PM   #1 (permalink)
Trading Apprentice
Indianapolis, IN
Futures Experience: Beginner
Platform: MQL4
Favorite Futures: Forex
Posts: 1 since Apr 2015
Thanks: 0 given, 0 received

Static Variable from Pre-defined variable


I'm trying to figure out a way to create user defined variables based on the Bid and Ask price that will be set when the Expert starts and that stay the same until the Expert is de-initialized or the values are changed programatically. In other words I don't want the value of my variables to go up and down as the price moves. I'm guessing it's probably something simple but I can't find or figure out how to do it. For Example:

OriginalAsk = Ask;

OriginalBid = Bid;

Thanks in advance


reply|delete |edit

Reply With Quote

Old April 15th, 2015, 09:15 PM   #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.


Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > MetaTrader > MetaQuotes MetaTrader MQL Programming > Static Variable from Pre-defined variable

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

An Afternoon with FIO trader bobwest

Elite only

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
Pre-defined entry or market action? Nashville22 Traders Hideout 3 August 3rd, 2014 06:31 PM
Global Variable allthewayne Elite Automated NinjaTrader Trading 16 May 10th, 2014 11:52 PM
Which tool to decide to enter the market at a pre-defined area of interest? Nicolas11 Traders Hideout 2 September 2nd, 2012 12:37 PM
Enqueue a variable Xav1029 NinjaTrader Programming 9 August 31st, 2012 06:09 AM
Variable Bar Chart DavidHP Traders Hideout 0 December 4th, 2009 03:53 PM

All times are GMT -4. The time now is 08:22 AM.

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-25 in 0.07 seconds with 19 queries on phoenix via your IP