MQL4 ve MQL5 ile ilgili herhangi bir acemi sorusu, algoritmalar ve kodlar hakkında yardım ve tartışma - sayfa 1539
Alım-satım fırsatlarını kaçırıyorsunuz:
- Ücretsiz alım-satım uygulamaları
- İşlem kopyalama için 8.000'den fazla sinyal
- Finansal piyasaları keşfetmek için ekonomik haberler
Kayıt
Giriş yap
Gizlilik ve Veri Koruma Politikasını ve MQL5.com Kullanım Şartlarını kabul edersiniz
Hesabınız yoksa, lütfen kaydolun
Peki doğru olacak mı?
Peki doğru olacak mı?
Teşekkür ederim Bu zor bir seçenek Her şeyi daha basit hale getirdim, sadece birkaç satır.
Teşekkür ederim Bu zor bir seçenek Her şeyi daha basit hale getirdim, sadece birkaç satır.
sakıncası yoksa görmek ilginç
for(i=k; i>=0; i--) {
if( OrderSelect (i,SELECT_BY_POS,MODE_TRADES)) {
if(OrderSymbol()==Symbol()) {
if(OrderMagicNumber() == Sihirli) {
if(OrderType()>1) devam ediyor;
if(OrderType()==OP_BUY || OrderType()==OP_SELL) toplam++;
}}}}
//---
// toplam=SiparişToplam();
if(toplam<1)
{
Merhaba! Kendi işlev kitaplığımı oluşturmak istedim çünkü robotlarımda genellikle aynı işlevleri kullanıyorum. Her şey doğru yapılmış gibiydi. Bir kitaplık oluşturdu, Kitaplıklar klasörüne attı, göstergedeki kitaplığı #import ile bağladı
#import "andylib.ex4"
bool KeyPr(uzun l, k dizisi);
string TestFunc();
#içe aktarmak
Bir açıklama ile kitaplıkta belirtilen işlevler. Ancak kütüphanedeki işlevler çağrılmaz. İncil'i göstergeler klasörüne ve hatta doğrudan İncil ile iletişim kuran göstergenin bulunduğu yere atmaya çalıştım, sonuçsuz. Ne yanlış olabilir?
Merhaba! Kendi işlev kitaplığımı oluşturmak istedim çünkü robotlarımda genellikle aynı işlevleri kullanıyorum. Her şey doğru yapılmış gibiydi. Bir kitaplık oluşturdu, Kitaplıklar klasörüne attı, göstergedeki kitaplığı #import ile bağladı
#import "andylib.ex4"
bool KeyPr(uzun l, k dizisi);
string TestFunc();
#içe aktarmak
Bir açıklama ile kitaplıkta belirtilen işlevler. Ancak kütüphanedeki işlevler çağrılmaz. İncil'i göstergeler klasörüne ve hatta doğrudan İncil ile iletişim kuran göstergenin bulunduğu yere atmaya çalıştım, sonuçsuz. Ne yanlış olabilir?
Dahil etmek
for(i=k; i>=0; i--) {
if(OrderSelect (i,SELECT_BY_POS,MODE_TRADES)) {
if(OrderSymbol()==Symbol()) {
if(OrderMagicNumber() == Sihirli) {
if(OrderType()>1) devam ediyor;
if(OrderType()==OP_BUY || OrderType()==OP_SEL) toplam++;
}}}}
//---
// toplam=SiparişToplam();
if(toplam<1)
{
Yazdıklarınız işe yaramayabilir.
Önce "toplam++" hesaplayın ve ardından sıfırlayın ve "OrdersTotal()" değerini ayarlayın, yani. tüm siparişler
Merhaba! Kendi işlev kitaplığımı oluşturmak istedim çünkü robotlarımda genellikle aynı işlevleri kullanıyorum. Her şey doğru yapılmış gibiydi. Bir kitaplık oluşturdu, Kitaplıklar klasörüne attı, göstergedeki kitaplığı #import ile bağladı
#import "andylib.ex4"
bool KeyPr(uzun l, k dizisi);
string TestFunc();
#içe aktarmak
Bir açıklama ile kitaplıkta belirtilen işlevler. Ancak kütüphanedeki işlevler çağrılmaz. İncil'i gösterge klasörüne ve hatta doğrudan İncil ile iletişim kuran göstergenin bulunduğu yere atmaya çalıştım, sonuçsuz. Ne yanlış olabilir?
Kütüphanede fonksiyon adından sonra export yazmayı unuttunuz mu?
Ve bir kitaplık değil, bir sınıf olmadan bile işlevlerin sıkıştırılacağı bir .mqh dosyası yapmak daha iyidir ve derleme sırasında yalnızca EA/göstergeden erişilebilen gerekli olanlar alınacaktır.