Gogetter EA - pagina 4

 

risultati dei test in avanti di quasi una settimana

alcuni rapporti...

questo proviene dall'esecuzione di GGL 1.05 e GGS 2.21 da venerdì scorso....

In realtà lo trovo incoraggiante considerando la mancanza di qualsiasi movimento di tendenza per più di un giorno. Se può farsi strada attraverso queste condizioni ed essere in pareggio, allora tutto ciò di cui ha bisogno è un breakout di qualsiasi grado ed è redditizio...

Attualmente sto studiando l'aggiunta di supporto e resistenza alle logiche per aumentare la redditività e ridurre il rapporto rischio/ricompensa.

Vedo un sacco di spazio per il miglioramento, dato che ho osservato questo lavoro. È stato difficile tenere le mie 'mani discrezionali' fuori da esso quando ha avuto profitti che non ha preso dopo un movimento e invece ha seguito di nuovo verso il basso per un s/l. Sta lasciando soldi sul tavolo ancora....

Questo va bene, mi dà la possibilità di pensare a come ottenerlo almeno sta dipingendo un qualche tipo di contesto che posso capire sul mercato e alla fine penso che mi farò strada più a fondo nei picchi e nelle valli dell'azione dei prezzi.

Mi piace l'abilità di adattare le impostazioni di ogni segnale a quelle che sono le condizioni specifiche di ciò che genera il segnale, piuttosto che aspettarsi una taglia unica per tutti.

Accolgo con favore le idee su come includere supporto e resistenza nella logica di entrata e uscita.

La .gif dei posizionamenti dei segnali è solo il mio disegno di alcune linee da un massimo di 145 barre a dove si verificano i segnali di vendita sul GGShorts. Sono io che guardo quale anatomia del segnale sembra essere più probabile da premiare...

Ho notato che senza eccezione il primo segnale di vendita che segue un nuovo massimo non va mai molto lontano. Dopo di che il secondo segnale si muove di più e in seguito le probabilità di un grande sell off aumentano.

Tutto quello che devo fare è eliminare o adattare i segnali al luogo in cui si verificano per minimizzare le perdite e aumentare i guadagni di un certo grado e questo migliorerà la redditività complessiva. Questo è il mio piano... ci dovrebbe essere un cartello da qualche parte che dice: warning nerd wanna be at work.

 

Il mio obiettivo è quello di differenziare il primo segnale di vendita dopo un nuovo massimo e personalizzare una serie di impostazioni di segnale per esso che sarà eseguito solo sul primo segnale di vendita dopo un nuovo massimo che è superiore al massimo precedente.

Questo significa che è appena salito e ora sta dando il primo segnale di vendita. Il che è tipicamente abbastanza patetico per quanto riguarda qualsiasi ritracciamento significativo.

 

Ecco il codice...

//support and resistance

double HIGH = High;

double LOW = Low[Lowest (NULL, 0, MODE_LOW, SupportBarsBack, LStartBack)];

//

//

//----locates the relationship of the sell signal to the highest high and in relationship to other sell signals within specified period-----

int h, j=-1;

for(h=1;h<=ResistanceBarsBack;h++)

{

if(HIGH == High) j=h;// j=# of bars back from signal that the Highest high occurred

}

int l, k=-1;

for(l=1;l<=SupportBarsBack;l++)

{

if(LOW == Low[l]) k=l;// k=# of bars back from signal that the Lowest low occurred

}

//+----------end signal placement locator-------------------------+

//

//

Print("Order Number: ",OrderTicket() ," ",ResistanceBarsBack," bars back resistance:",HIGH," @ bar",j," & ",SupportBarsBack," bars back support:",LOW," @ bar",k);

questo sta stampando con successo le variabili "HIGH" e "LOW" che rappresentano il massimo alto e il minimo più basso di ogni serie di trade.

Ho bisogno di popolare un array con questi valori di HIGH e LOW per ogni serie di trade eseguita.

 

GGS 2.21x

Sono felice di riferire oggi che il sistema ha raggiunto il break even dopo una settimana e ora sta facendo un piccolo profitto. Questo si basa sul fatto che funziona così com'è.

Mentre era in fase di test, ho continuato a lavorarci. Il mio obiettivo è stato quello di aggiungere supporto e resistenza in qualche modo produttivo alla sua logica. Nel fare ciò penso di essermi imbattuto in qualcosa di ancora più utile.

Ho un altro amico che fa programmazione di nome Robert C. e insieme abbiamo iniziato a sviluppare un metodo di feedback del profilo di trading che stampa i valori o il profilo di un trade quando si apre. Questo in teoria potrebbe rivelarsi molto utile. Se posso generare un profilo distinguibile di come sono i vincitori e i perdenti, dovrei essere in grado di puntare su di loro ed evitare il ribasso e massimizzare il rialzo, almeno in una certa misura significativa.

Questo lo chiamo lo sforzo dei raggi X. Perché è come se un medico prendesse un'immagine prima di fare un'operazione. Da qui la "x" sulla versione aggiornata dell'EA. Non è a raggi x perché questo non è completamente sviluppato, è appena iniziato ad essere sviluppato. L'idea è che se posso tracciare e stampare i valori di supporto e resistenza nel diario del tester, allora dovrei essere in grado in modo simile di riportare nel diario del tester ogni altro indicatore e aspetto del trade creandone un'immagine di profilo che posso poi usare per filtrare gli ordini prima che vengano piazzati.

Ho dovuto disattivare la linea "commento" nella finestra del tester per far funzionare queste altre linee di stampa, altrimenti l'unica cosa che il giornale del tester riportava era il commento come ripetutamente.

In allegato c'è l'attuale test in avanti e la versione x di GGs su cui sto lavorando.

Sono incoraggiato da ciò che è emerso questa settimana e continuo ad essere grato per tutto l'incoraggiamento che ricevo da questo forum e altrove.

 

Non capisco...

Perché il tester non chiude lo scambio?

File:
 

un'altra istanza di tester non in esecuzione

File:
 

Ok... stai usando GBPUSD e dici che lo spread è di 3 pip.

Ora il tuo TP per un trade corto è 1.9165.

Il minimo è andato a 1.9163 come evidente dal grafico. Poiché i dati del grafico sono di solito i prezzi di offerta, l'Ask per quel prezzo è 1.9166. L'Ask non ha mai toccato 1.9165, quindi il tuo TP non è stato eseguito.

Spero che questo abbia senso.

 

oh ok, questo ha senso... ho dimenticato lo spread...

Ecco un altro problema che ho...

questo dovrebbe creare un array di "HIGH" e "LOW" di ogni ordine....

poi dovrebbe vedere se l'attuale HIGH e/o LOW corrisponde a uno degli ordini precedenti....

if (Order == SIGNAL_SELL && ((EachTickMode && !TickCheck) || (!EachTickMode && (Bars != BarCount)))) {

IsTrade = False;//---allows multiple orders to open

if(!IsTrade) {

//Check free margin

/*if (AccountFreeMargin() < (1000 * Lots)) {

Print("We have no money. Free Margin = ", AccountFreeMargin());

return(0);

}*/

//+-----------------support and resistance arrays------thanks to Robert C for assistance on this-------+

//+-------creates array of each trade series support and resistance for comparisions-------------------+

if ( SLIndex >= SLSIZE )

{

SLIndex = 0;

}

sLocatorLows[ SLIndex ] = LOW;

sLocatorHighs[ SLIndex ] = HIGH;

SLIndex++;

//+-----------------------end of support resistance array creation------------------------------------+

//+-------------------signal matching-------------thanks to Robert C for assistance on this-------------+

//checks for matches with the current signal's sup/res and previous trades sup/res

int lowMatches = 0;

int highMatches = 0;

for(int p = 0; p <= SLSIZE; p++ )

{ Print("index value:",sLocatorLows[p]," Low is:",LOW);

if ( sLocatorLows[p] == LOW )

{

lowMatches++;

//Print("index value:",sLocatorLows[p]," Low is:",LOW);

}

// Print("index value:",sLocatorHighs[p]," High is:",HIGH);

if ( sLocatorHighs[p] == HIGH )

{

highMatches++;

}

}

//+----------------end of signal matching--------------------------------------------------------------+

if(highMatches == 0){

TradeSignal = 99;

}

if(highMatches == 1 && lowMatches ==1){

TradeSignal = 5;

}

//SRfilter();

TradeSettings();

if (StopLossMode) StopLossLevel = Bid + StopLoss * Point; else StopLossLevel = 0.0;

if (TakeProfitMode) TakeProfitLevel = Bid - TakeProfit * Point; else TakeProfitLevel = 0.0;

for (int o = 0; o <= MaxOpenTrade; o ++)

if(CountTrades() < MaxOpenTrade)

Ticket = OrderSend(Symbol(), OP_SELL, Lots, Bid, Slippage, StopLossLevel, TakeProfitLevel, "Sell(#" + MagicNumber + ")", MagicNumber, 0, DeepPink);

if(Ticket > 0) {

if (OrderSelect(Ticket, SELECT_BY_TICKET, MODE_TRADES)) {

//Print("SELL order opened ticket number: ",OrderTicket()," for ", OrderOpenPrice());

Print("Order Number: ",OrderTicket() ," ",ResistanceBarsBack," bars back resistance:",HIGH," @ bar",j," with ",highMatches," prev.matches");

Print("Order Number: ",OrderTicket() ," ",SupportBarsBack," bars back support:",LOW," @ bar",k," with ",lowMatches," prev.matches");

[/PHP]

This is what I get from the print output in the journal...

[PHP]2006.07.22 09:08:14 2005.03.04 07:11 GoGetShorts-2.21x GBPUSD,M30: index value:1.9056 Low is:1.9056

2006.07.22 09:08:14 2005.03.04 07:11 GoGetShorts-2.21x GBPUSD,M30: index value:1.9056 Low is:1.9056

2006.07.22 09:08:14 2005.03.04 07:11 GoGetShorts-2.21x GBPUSD,M30: index value:1.9056 Low is:1.9056

2006.07.22 09:08:13 2005.03.03 22:47 GoGetShorts-2.21x GBPUSD,M30: index value:0 Low is:1.9056

2006.07.22 09:08:13 2005.03.03 22:47 GoGetShorts-2.21x GBPUSD,M30: index value:1.9056 Low is:1.9056

2006.07.22 09:08:13 2005.03.03 22:47 GoGetShorts-2.21x GBPUSD,M30: index value:1.9056 Low is:1.9056

2006.07.22 09:08:13 2005.03.03 22:47 GoGetShorts-2.21x GBPUSD,M30: index value:1.9056 Low is:1.9056

2006.07.22 09:08:13 2005.03.03 22:47 GoGetShorts-2.21x GBPUSD,M30: index value:1.9056 Low is:1.9056

2006.07.22 09:08:13 2005.03.03 22:47 GoGetShorts-2.21x GBPUSD,M30: index value:1.9056 Low is:1.9056

2006.07.22 09:08:13 2005.03.03 22:47 GoGetShorts-2.21x GBPUSD,M30: index value:1.9056 Low is:1.9056

2006.07.22 09:08:13 2005.03.03 22:47 GoGetShorts-2.21x GBPUSD,M30: index value:1.9056 Low is:1.9056

2006.07.22 09:08:12 2005.03.03 16:12 GoGetShorts-2.21x GBPUSD,M30: index value:1.9057 Low is:1.9057

2006.07.22 09:08:12 2005.03.03 16:12 GoGetShorts-2.21x GBPUSD,M30: index value:1.9057 Low is:1.9057

2006.07.22 09:08:12 2005.03.03 16:12 GoGetShorts-2.21x GBPUSD,M30: index value:1.9057 Low is:1.9057

2006.07.22 09:08:12 2005.03.03 16:12 GoGetShorts-2.21x GBPUSD,M30: index value:1.9057 Low is:1.9057

2006.07.22 09:08:12 2005.03.03 16:12 GoGetShorts-2.21x GBPUSD,M30: index value:1.9057 Low is:1.9057

2006.07.22 09:08:12 2005.03.03 16:12 GoGetShorts-2.21x GBPUSD,M30: index value:1.9057 Low is:1.9057

2006.07.22 09:08:12 2005.03.03 16:12 GoGetShorts-2.21x GBPUSD,M30: index value:1.9057 Low is:1.9057

2006.07.22 09:08:12 2005.03.03 16:12 GoGetShorts-2.21x GBPUSD,M30: index value:1.9057 Low is:1.9057

2006.07.22 09:08:11 2005.03.03 12:51 GoGetShorts-2.21x GBPUSD,M30: index value:1.908 Low is:1.908

2006.07.22 09:08:11 2005.03.03 12:51 GoGetShorts-2.21x GBPUSD,M30: index value:1.908 Low is:1.908

2006.07.22 09:08:11 2005.03.03 12:51 GoGetShorts-2.21x GBPUSD,M30: index value:1.908 Low is:1.908

2006.07.22 09:08:11 2005.03.03 12:51 GoGetShorts-2.21x GBPUSD,M30: index value:1.908 Low is:1.908

2006.07.22 09:08:11 2005.03.03 12:51 GoGetShorts-2.21x GBPUSD,M30: index value:1.908 Low is:1.908

2006.07.22 09:08:11 2005.03.03 12:51 GoGetShorts-2.21x GBPUSD,M30: index value:1.908 Low is:1.908

2006.07.22 09:08:11 2005.03.03 12:51 GoGetShorts-2.21x GBPUSD,M30: index value:1.908 Low is:1.908

2006.07.22 09:08:11 2005.03.03 12:51 GoGetShorts-2.21x GBPUSD,M30: index value:1.908 Low is:1.908

2006.07.22 09:08:10 2005.03.03 07:55 GoGetShorts-2.21x GBPUSD,M30: index value:1.908 Low is:1.908

2006.07.22 09:08:10 2005.03.03 07:55 GoGetShorts-2.21x GBPUSD,M30: index value:1.908 Low is:1.908

2006.07.22 09:08:10 2005.03.03 07:55 GoGetShorts-2.21x GBPUSD,M30: index value:1.908 Low is:1.908

2006.07.22 09:08:10 2005.03.03 07:55 GoGetShorts-2.21x GBPUSD,M30: index value:1.908 Low is:1.908

2006.07.22 09:08:10 2005.03.03 07:55 GoGetShorts-2.21x GBPUSD,M30: index value:1.908 Low is:1.908

2006.07.22 09:08:10 2005.03.03 07:55 GoGetShorts-2.21x GBPUSD,M30: index value:1.908 Low is:1.908

2006.07.22 09:08:10 2005.03.03 07:55 GoGetShorts-2.21x GBPUSD,M30: index value:1.908 Low is:1.908

2006.07.22 09:08:10 2005.03.03 07:55 GoGetShorts-2.21x GBPUSD,M30: index value:1.908 Low is:1.908

2006.07.22 09:08:09 2005.03.03 01:16 GoGetShorts-2.21x GBPUSD,M30: index value:1.908 Low is:1.908

2006.07.22 09:08:09 2005.03.03 01:16 GoGetShorts-2.21x GBPUSD,M30: index value:1.908 Low is:1.908

2006.07.22 09:08:09 2005.03.03 01:16 GoGetShorts-2.21x GBPUSD,M30: index value:1.908 Low is:1.908

2006.07.22 09:08:09 2005.03.03 01:16 GoGetShorts-2.21x GBPUSD,M30: index value:1.908 Low is:1.908

2006.07.22 09:08:09 2005.03.03 01:16 GoGetShorts-2.21x GBPUSD,M30: index value:1.908 Low is:1.908

2006.07.22 09:08:09 2005.03.03 01:16 GoGetShorts-2.21x GBPUSD,M30: index value:1.908 Low is:1.908

2006.07.22 09:08:09 2005.03.03 01:16 GoGetShorts-2.21x GBPUSD,M30: index value:1.908 Low is:1.908

2006.07.22 09:08:09 2005.03.03 01:16 GoGetShorts-2.21x GBPUSD,M30: index value:1.908 Low is:1.908

2006.07.22 09:08:05 GoGetShorts-2.21x GBPUSD,M30: loaded successfully

 

Questo è di quando fa gli ordini:

2006.07.22 09:00:22 2005.03.14 06:30 GoGetShorts-2.21x GBPUSD,M30: Order Number: 12 145 bars back support:1.9163 @ bar40 with 100 prev.matches

2006.07.22 09:00:22 2005.03.14 06:30 GoGetShorts-2.21x GBPUSD,M30: Order Number: 12 145 bars back resistance:1.9318 @ bar137 with 1 prev.matches

2006.07.22 09:00:22 2005.03.14 06:30 GoGetShorts-2.21x GBPUSD,M30: open #12 sell 0.05 GBPUSD at 1.9222 sl: 1.9269 tp: 1.9117 ok

2006.07.22 09:00:22 2005.03.14 06:30 GoGetShorts-2.21x GBPUSD,M30: open #11 sell 0.05 GBPUSD at 1.9222 sl: 1.9269 tp: 1.9117 ok

2006.07.22 09:00:21 2005.03.10 20:30 GoGetShorts-2.21x GBPUSD,M30: Order Number: 10 145 bars back support:1.9126 @ bar125 with 2 prev.matches

2006.07.22 09:00:21 2005.03.10 20:30 GoGetShorts-2.21x GBPUSD,M30: Order Number: 10 145 bars back resistance:1.9324 @ bar107 with 2 prev.matches

2006.07.22 09:00:21 2005.03.10 20:30 GoGetShorts-2.21x GBPUSD,M30: open #10 sell 0.05 GBPUSD at 1.9220 sl: 1.9267 tp: 1.9115 ok

2006.07.22 09:00:21 2005.03.10 20:30 GoGetShorts-2.21x GBPUSD,M30: Order Number: 9 145 bars back support:1.9126 @ bar125 with 1 prev.matches

2006.07.22 09:00:21 2005.03.10 20:30 GoGetShorts-2.21x GBPUSD,M30: Order Number: 9 145 bars back resistance:1.9324 @ bar107 with 1 prev.matches

2006.07.22 09:00:21 2005.03.10 20:30 GoGetShorts-2.21x GBPUSD,M30: open #9 sell 0.01 GBPUSD at 1.9219 sl: 1.9269 tp: 1.9169 ok

2006.07.22 09:00:19 2005.03.07 15:50 GoGetShorts-2.21x GBPUSD,M30: Order Number: 8 145 bars back support:1.9053 @ bar60 with 100 prev.matches

2006.07.22 09:00:19 2005.03.07 15:50 GoGetShorts-2.21x GBPUSD,M30: Order Number: 8 145 bars back resistance:1.9271 @ bar44 with 100 prev.matches

2006.07.22 09:00:19 2005.03.07 15:50 GoGetShorts-2.21x GBPUSD,M30: open #8 sell 0.05 GBPUSD at 1.9152 sl: 1.9199 tp: 1.9047 ok

2006.07.22 09:00:19 2005.03.07 15:50 GoGetShorts-2.21x GBPUSD,M30: open #7 sell 0.05 GBPUSD at 1.9152 sl: 1.9199 tp: 1.9047 ok

2006.07.22 09:00:19 2005.03.07 14:30 GoGetShorts-2.21x GBPUSD,M30: Order Number: 6 145 bars back support:1.9053 @ bar58 with 100 prev.matches

2006.07.22 09:00:19 2005.03.07 14:30 GoGetShorts-2.21x GBPUSD,M30: Order Number: 6 145 bars back resistance:1.9271 @ bar42 with 1 prev.matches

2006.07.22 09:00:19 2005.03.07 14:30 GoGetShorts-2.21x GBPUSD,M30: open #6 sell 0.05 GBPUSD at 1.9125 sl: 1.9172 tp: 1.9020 ok

2006.07.22 09:00:19 2005.03.07 14:30 GoGetShorts-2.21x GBPUSD,M30: open #5 sell 0.05 GBPUSD at 1.9125 sl: 1.9172 tp: 1.9020 ok

2006.07.22 09:00:19 2005.03.03 14:36 GoGetShorts-2.21x GBPUSD,M30: Order Number: 4 145 bars back support:1.9057 @ bar1 with 26 prev.matches

2006.07.22 09:00:19 2005.03.03 14:36 GoGetShorts-2.21x GBPUSD,M30: Order Number: 4 145 bars back resistance:1.9259 @ bar144 with 100 prev.matches

2006.07.22 09:00:19 2005.03.03 14:36 GoGetShorts-2.21x GBPUSD,M30: open #4 sell 0.05 GBPUSD at 1.9096 sl: 1.9143 tp: 1.8991 ok

2006.07.22 09:00:19 2005.03.03 14:28 GoGetShorts-2.21x GBPUSD,M30: Order Number: 3 145 bars back support:1.9062 @ bar2 with 100 prev.matches

2006.07.22 09:00:19 2005.03.03 14:28 GoGetShorts-2.21x GBPUSD,M30: Order Number: 3 145 bars back resistance:1.9259 @ bar143 with 100 prev.matches

2006.07.22 09:00:19 2005.03.03 14:28 GoGetShorts-2.21x GBPUSD,M30: open #3 sell 0.05 GBPUSD at 1.9057 sl: 1.9104 tp: 1.8952 ok

2006.07.22 09:00:19 2005.03.03 14:28 Tester: take profit #1 at 1.9067 (1.9057 / 1.9065)

2006.07.22 09:00:19 2005.03.02 16:50 GoGetShorts-2.21x GBPUSD,M30: Order Number: 2 145 bars back support:1.908 @ bar15 with 2 prev.matches

2006.07.22 09:00:19 2005.03.02 16:50 GoGetShorts-2.21x GBPUSD,M30: Order Number: 2 145 bars back resistance:1.9259 @ bar100 with 2 prev.matches

2006.07.22 09:00:19 2005.03.02 16:50 GoGetShorts-2.21x GBPUSD,M30: open #2 sell 0.05 GBPUSD at 1.9116 sl: 1.9163 tp: 1.9011 ok

2006.07.22 09:00:19 2005.03.02 16:49 GoGetShorts-2.21x GBPUSD,M30: Order Number: 1 145 bars back support:1.908 @ bar15 with 1 prev.matches

2006.07.22 09:00:19 2005.03.02 16:49 GoGetShorts-2.21x GBPUSD,M30: Order Number: 1 145 bars back resistance:1.9259 @ bar100 with 1 prev.matches

2006.07.22 09:00:19 2005.03.02 16:49 GoGetShorts-2.21x GBPUSD,M30: open #1 sell 0.01 GBPUSD at 1.9117 sl: 1.9167 tp: 1.9067 ok

2006.07.22 09:00:19 GoGetShorts-2.21x inputs: ShortemaS=4; ShortemaL=18; Mtrendema=150; TrailingStop=17; Slippage=3; MaxOpenTrade_1=2; Lots1=0.05; TakeProfit1=105; StopLoss1=47; MinsMultiplier1=75; MaxOpenTrade_2=2; Lots2=0.3; TakeProfit2=52; StopLoss2=120; MinsMultiplier2=75; OffAve2=160; MaxOpenTrade_3=1; Lots3=0.2; TakeProfit3=30; StopLoss3=30; MinsMultiplier3=75; OffAve3=320; MaxOpenTrade_4=1; Lots4=0.1; TakeProfit4=30; StopLoss4=30; MinsMultiplier4=75; OffAve4=320; Shift=2; MaxOpenTrade_5=1; Lots5=0.01; TakeProfit5=50; S

2006.07.22 09:00:15 GoGetShorts-2.21x GBPUSD,M30: loaded successfully

 

congratulazioni Aaragorn. La maggior parte delle persone che dicono di voler imparare il C++ si spengono e non se ne sente più parlare. È fantastico che tu abbia imparato qualcosa del genere. Penso che sia una cosa preziosa da imparare. Per certi versi è una religione.