|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
How to code?
Hi all:
I have a very simple EA based on EMA cross, the profit is a big negative. I would like to reverse the setting code. Anyone can help or tell me, where should I begin? 1. Should I look at the magic number? What is the magic number function? How to calculate this number? or other..... Thanks! |
|
|||
|
Quote:
This code is for the truesclaper 49p by Ron. I find that it very often opens positions in the good direction but,ended with a big lost at last. Just wounder if any possible can revease the code, so might be can turn the big lost to big gain.... Below is the EA code: Thanks! |
|
||||
|
Quote:
The easiest way to reverse the code (sell to buy & buy to sell) is changing: Code:
if(signal0 < signal1 ) GlobalVariableSet("TM0",1);
if(signal0 > signal1) GlobalVariableSet("TM0",0);
Code:
if(signal0 > signal1 ) GlobalVariableSet("TM0",1);
if(signal0 < signal1) GlobalVariableSet("TM0",0);
|
|
||||
|
Quote:
The code of SL & TP has already written in this EA: Look at these lines: PHP Code:
PHP Code:
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to code this? | iscuba11 | Metatrader 4 mql 4 - Development course | 1 | 08-03-2007 04:22 PM |