Forum
Market
Signals
Freelance
VPS
Quotes
MetaTrader
Articles
CodeBase
Algo Forge
Documentation
AlgoBook
NeuroBook
Calendar
WebTerminal
Tools
About
Download MetaTrader 5
Home
Type
/
to search: @user, $symbol, ...
Log in
Create an account
English
Русский
中文
Español
Português
日本語
Deutsch
한국어
Français
Italiano
Türkçe
dadash
/ Profile
dadash
Iran
37
Friends
Requests
Add friends via their profile or user search and you will be able to see if they are online
Outgoing
dadash
2015.10.27
Added topic
Problem in calling a function twice
Dear Coders I have a problem with calling a custom function twice in OnTick() function. Every things are alright when i call my function once. but when i call it twice every things become messed up. You can find my function below. i wrote this for
Share on social networks
9
dadash
2015.08.02
Added topic
Declaring Variables in Function
int Crossed ( double line1 , double line2) { static int last_direction = 0 ; static int current_direction = 0 ; if (line1>line2)current_direction = 1 ; //up if (line1<line2)current_direction = 2 ; //down if (current_direction != last_direction)
Share on social networks
10
dadash
2015.07.04
Registered at MQL5.community
Share on social networks
January
February
March
April
May
June
July
August
September
October
November
December
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
: