This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//@version=5 | |
indicator("ICT RBRD by GHoang Le", overlay=true) | |
// Function to check if a candle is bearish | |
is_bearish(index) => close[index] < open[index] | |
// Function to check if a candle is bullish | |
is_bullish(index) => close[index] > open[index] | |
// Function to check if a candle has a bottom wick |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Learning How To Learn | |
Module 1 - What is Learning | |
Focused/Diffuse Modes Thinking | |
- Obviously ‘focused’ is when you’re concentrating. Direct approach to solving familiar problems. | |
- Focused: thoughts move through nicely-paved road of familiar notions (neural pattern looks very tight and directed). | |
- encompasses rational, sequential, analytical approaches to thinking | |
- Diffuse: More of a search function neural pattern. Thoughts move widely. More of a broad/big-picture perspective trying to connect ideas from different places. | |
- We’re always either in focused or diffuse mode of thinking. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// write mql5 code to set SL to entry price of all current position when current price of XAUUSD move more than 20pips. | |
void OnTick() | |
{ | |
double XAUUSD_Price = SymbolInfoDouble(_Symbol, SYMBOL_BID); | |
Print("XAUUSD_Price: ", XAUUSD_Price); | |
double XAUUSD_Pips = SymbolInfoInteger(_Symbol, SYMBOL_DIGITS); | |
Print("XAUUSD_Pips: ", XAUUSD_Pips); | |
double XAUUSD_PipsToSL = 20 * Point(); | |
Print("XAUUSD_PipsToSL: ", XAUUSD_PipsToSL); | |
double XAUUSD_SL = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
import java.util.List; | |
import java.util.stream.Collectors; | |
class Main { | |
public static void main(String[] args) { | |
String str = "gEeks"; | |
System.out.println(str.charAt(0)); // g | |
System.out.println(str.charAt(1)); // E | |
System.out.println(str.charAt(2)); // e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
import java.util.List; | |
import java.util.stream.Collectors; | |
class Main { | |
public static void main(String[] args) { | |
String str = "gEeks"; | |
System.out.println(str.charAt(0)); | |
System.out.println(str.charAt(1)); | |
System.out.println(str.charAt(2)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
import java.util.List; | |
import java.util.stream.Collectors; | |
class Main { | |
public static void main(String[] args) { | |
String str = "gEeks"; | |
// String str = "Geeks"; | |
Boolean isNameUpper = Character.isUpperCase(str.charAt(1)); | |
System.out.println(isNameUpper); // true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
import java.util.List; | |
import java.util.stream.Collectors; | |
class Main { | |
public static void main(String[] args) { | |
String str = "gEeks"; | |
// String str = "Geeks"; | |
Boolean isNameUpper = Character.isUpperCase(str.charAt(1)); | |
System.out.println(isNameUpper); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
import java.util.List; | |
import java.util.stream.Collectors; | |
class Main { | |
public static void main(String[] args) { | |
String str = "gEeks"; | |
// String str = "Geeks"; | |
Boolean isNameUpper = Character.isUpperCase(str.charAt(1)); | |
System.out.println(isNameUpper); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
import java.util.List; | |
import java.util.stream.Collectors; | |
class Main { | |
public static void main(String[] args) { | |
List<Integer> list = Arrays.asList(3, 4, 6, 12, 20); | |
List<Integer> ket_qua = list.stream() | |
.filter(num -> { | |
System.out.println(String.format("Gia tri cua num: %s", num)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
import java.util.List; | |
class Main { | |
public static void main(String[] args) { | |
// Creating a list of Integers | |
List<Integer> list = Arrays.asList(3, 4, 6, 12, 20); | |
list.stream() | |
.filter(num -> true) |
NewerOlder