나의 공간과 이야기

샘플 예제 MQL5

Historymaker731 2015. 12. 6. 15:42

 

샘플 예제 ...

 

예제 구조사항
공부 책보고 다시 짜야지.

 

프로그래밍이 문제가 아니라 내가 가진 돈이 없어서 문제일 뿐

 

 

Language Basics
© 2000-2015, MetaQuotes Software Corp.
211 page 중


sets or gets the value of a class member. Secondly, perhaps in the future we will need to change the
type of the m_name variable in the CPerson class or in any of its derivative classes.
In this case, we'll need just to change the implementation of functions SetName() and GetName(),
while objects of the CPerson class will be available for using in a program without any code changes
because the user will not even know that the data type of m_name has changed.
Example:
struct

 

 

Example:

struct Name
{
string first_name; // name
string last_name; // last name
};
class CPerson
{
protected:
Name m_name; // name
public:
void SetName(string n);
string GetName(){return(m_name.first_name+" "+m_name.last_name);}
private:
string GetFirstName(string full_name);
string GetLastName(string full_name);
};
void CPerson::SetName(string n)
{
m_name.first_name=GetFirstName(n);
m_name.last_name=GetLastName(n);
}
string CPerson::GetFirstName(string full_name)
{
int pos=StringFind(full_name," ");
if(pos>0) StringSetCharacter(full_name,pos,0);
return(full_name);
}
string CPerson::GetLastName(string full_name)
{
string ret_string;
int pos=StringFind(full_name," ");
if(pos>0) ret_string=StringSubstr(full_name,pos+1);
else ret_string=full_name;
return(ret_string);

}

 

*가로 안닫힘 주의!!!!

 

// 암튼..

돈 벌어야 한다.

 

 

 

 

10038에서 6121 이 남았는데 여기서 1lot이 1억이라고 쳐도 몇억이 날라 갔는지 알겠지???

한방에 훅하고 날라감

이제 알겠지??? 

 

3917억이 날라감 그나마 모의계좌 가상 연습이라 없는 돈이니까 그나마 다행이지.

 

 

아 Cboo랄

 

StrategyTester his1.htm

 

첨부파일 시험 결과


예를 들어서잘못 적용하고 이렇게 하면

뭐 시작이 예를 들어서 1000억하면  4000억 날라감 /  기본 5000억이 있어야 살 수 있음.

그래서 대부분 리스크 있다고 주의 경고함.  이렇게 4000억 날라가도 형사처벌은 불가능함

거기다가 미국 법이야.


프로그래밍 이렇게 하면 망한다 제대로 보여줌


입력도 실수 클릭도 실수

실수로 경험한다!!!!!!!!!!!!!!!!!!!!!!

아직 감이 안 잡힘

 

국내 법으로는 무조건 시작 금액이 1억이라서 시작금액이 너무 높아서 항의가 많음

최소 1000만원으로 시작해야 함 / 법개정 좀 하라니까

 

서민이 1억이 어딨냐???

 

 

MQL 4, 5

국내 법으로는 무조건 시작 금액이 1억이라서 시작금액이 너무 높아서 항의가 많음

기본 시작 금액이

...

1 lot 이 무조건 1억임 / 천만달러

최소 1000만원으로 시작해야 함 / 법개정 좀 하라니까

서민이 1억이 어딨냐???

거기다가 국가 정부 외화보유고 제한적이라 문제가 많아.
맨날 박근혜가 해외 나가서 싸돌아 다니면 뭐 하냐???
국내 법안 수정 처리도 못하면서..

그리고 해외는 무조건 미국 법에 따름.

하다가 보면 한국에 사니까 국내법보다는 해외 법에 따르게 됨

단위도 모르는 해외 사기꾼들이 한국돈 1억이 국내에서 얼마나 큰 돈인지
몰라서 날뛰고 먹튀가 많음.

 

무조건 해외에 테스트  해야함

 

내꺼 실제 어제 상황

 

https://www.mql5.com/en/charts/4333892/eurusd-m5-hf-markets-ltd

 

모의계좌 = 가상 계좌 연습용

 

이제 원금 회복중

 

 

StrategyTester his1.htm
2.14MB