if (longsOn)
{
// Print("34B " + " Trade34B: " + Trade34B + " UseVolFilter: "
// + UseVolFilter + " MFI Filter:" + UseMFIFIlter + " Stoch Filter:" +
// UseStochFilter + " Time: " + Time[0]
// +" Volume: " + VOL1[0] + " MFI Value: " + MFI1[0] + " StochValue: " + StochasticsFast1.D[0]);
if (
((Trade34B == true) && (UseMFIFIlter == true) [COLOR=#2ecc71][B] // ON THIS line i get error name expected[/B][/COLOR]
&& (emaAngulation > EMAAngulation * TickSize) // EMA Angulation is greater then (x)
&& (emaAngulationXBarsBefore > EMAAngulationXBarsBefore * TickSize) // EMA Angulation X bars before - angulation not on current bar but 5 bars before for example
&& (Close[1] < Open[1]) // previous bar bearish
&& (Low[0] < Low[1]) // and low of signal bar is lower then previous bar
&& (Low[0] < slowEMA[0] && Close[0] > slowEMA[0] + ABEMA34B * TickSize)
&& !(Open[1] < High[1] && Close[0] < High[1])
&& (EMA(200)[0] < slowEMA[0])
&& (MFI1[0] >= LevelForLongs))
((Trade34B == true) && (UseVolFilter == true)
&& (emaAngulation > EMAAngulation * TickSize) // EMA Angulation is greater then (x)
&& (emaAngulationXBarsBefore > EMAAngulationXBarsBefore * TickSize) // EMA Angulation X bars before - angulation not on current bar but 5 bars before for example
&& (Close[1] < Open[1]) // previous bar bearish
&& (Low[0] < Low[1]) // and low of signal bar is lower then previous bar
&& (Low[0] < slowEMA[0] && Close[0] > slowEMA[0] + ABEMA34B * TickSize)
&& !(Open[1] < High[1] && Close[0] < High[1])
&& (EMA(200)[0] < slowEMA[0])
&& (VOL1[0] >= VolReading ))
((Trade34B == true) && (UseStochFilter == true)
&& (emaAngulation > EMAAngulation * TickSize) // EMA Angulation is greater then (x)
&& (emaAngulationXBarsBefore > EMAAngulationXBarsBefore * TickSize) // EMA Angulation X bars before - angulation not on current bar but 5 bars before for example
&& (Close[1] < Open[1]) // previous bar bearish
&& (Low[0] < Low[1]) // and low of signal bar is lower then previous bar
&& (Low[0] < slowEMA[0] && Close[0] > slowEMA[0] + ABEMA34B * TickSize)
//&& !(Open[1] < High[1] && Close[0] < High[1])
&& (EMA(200)[0] < slowEMA[0])
&& (StochasticsFast1.D[0] <= StochLongLevels))
((Trade34B == true)
&& (emaAngulation > EMAAngulation * TickSize) // EMA Angulation is greater then (x)
&& (emaAngulationXBarsBefore > EMAAngulationXBarsBefore * TickSize) // EMA Angulation X bars before - angulation not on current bar but 5 bars before for example
&& (Close[1] < Open[1]) // previous bar bearish
&& (Low[0] < Low[1]) // and low of signal bar is lower then previous bar
&& (Low[0] < slowEMA[0] && Close[0] > slowEMA[0] + ABEMA34B * TickSize)
//&& !(Open[1] < High[1] && Close[0] < High[1])
&& (EMA(200)[0] < slowEMA[0])
&& (Close[0] < CurrentDayOHL().CurrentHigh[4] - DistanceToOHL * TickSize))) // distance to be greater then close of signal bar and current high)
{
entryOrder = SubmitOrderUnmanaged(0, OrderAction.Buy, OrderType.Market, TradeSize, 0, 0, "", "34B");
Print("34B " + " Close price is: " + Close[0] + " Open price is: " + Open[0] );
return;
}
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How to fix method name expected error
Collapse
X
-
How to fix method name expected error
HI i have this code and cant figure out how ot fix this name expected. There isnt suppose to be a method it just a if statement for main strategy 34B and filters
Code:Last edited by tkaboris; 02-18-2023, 08:47 AM.Tags: None
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
56 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
133 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
73 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
49 views
0 likes
|
Last Post
|

Comment